source: branches/gsoc13-tests/portmgr/fedora/macports.spec @ 111323

Last change on this file since 111323 was 111323, checked in by marius@…, 7 years ago

Merge from trunk.

File size: 3.0 KB
Line 
1Summary: MacPorts allows installing software on Mac OS X (and other platforms)
2Name: macports
3Version: 1.6.0
4Release: 0%{?dist}
5License: BSD
6Group: System Environment/Base
7URL: http://www.macports.org/
8Source: https://svn.macports.org/repository/macports/distfiles/MacPorts/MacPorts-%{version}.tar.bz2
9Prefix: /opt/local
10BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
11
12Requires: curl tcl rsync coreutils make
13BuildRequires: curl-devel tcl-devel tcl-thread sqlite-devel gcc-objc gnustep-base
14BuildRequires: mtree fakeroot /usr/GNUstep/System/Library/Makefiles/GNUstep.sh
15BuildRequires: openssl-devel
16
17%description
18MacPorts is a system for compiling, installing, and managing free and
19open source software. A MacPorts "port" is a set of specifications
20contained in a Portfile that defines an application, its characteristics,
21and any files or special instructions required to install it, so MacPorts
22may automatically fetch, patch, compile, and install ported software.
23
24MacPorts may also be used to pre-compile ported software into binaries
25that may be installed on remote computers. Binaries of ported software
26may be installed very quickly since the steps required to install ports
27from source code have all been performed in advance.
28
29%prep
30%setup -n MacPorts-%{version}
31# avoid the whole upgrade and information procedure
32perl -pe 's/^install::/interactive::/' -i Makefile.in
33
34%define _prefix         %{prefix}
35%define _bindir         %{prefix}/bin
36%define _sysconfdir     %{prefix}/etc
37%define _datadir        %{prefix}/share
38%define _mandir         %{prefix}/share/man
39%define _infodir        %{prefix}/share/info
40%define _localstatedir  %{prefix}/var
41
42%build
43source /usr/GNUstep/System/Library/Makefiles/GNUstep.sh
44%configure \
45        --without-included-tclthread --without-included-sqlite3 \
46        --with-objc-runtime=GNU --with-objc-foundation=GNUstep
47make
48
49%install
50source /usr/GNUstep/System/Library/Makefiles/GNUstep.sh
51rm -rf $RPM_BUILD_ROOT
52make install \
53        DESTDIR="$RPM_BUILD_ROOT" INSTALL="fakeroot install"
54
55%clean
56rm -rf $RPM_BUILD_ROOT
57
58%files
59%defattr(-, root, root)
60%doc LICENSE ChangeLog
61%{_bindir}/port
62%{_bindir}/portf
63%{_bindir}/portindex
64%{_bindir}/portmirror
65%config(noreplace) %{_sysconfdir}/macports
66%doc %{_mandir}/man1/port.1*
67%doc %{_mandir}/man5/macports.conf.5*
68%doc %{_mandir}/man7/portfile.7*
69%doc %{_mandir}/man7/portgroup.7*
70%doc %{_mandir}/man7/porthier.7*
71%doc %{_mandir}/man7/portstyle.7*
72%{_datadir}/macports
73%{_localstatedir}/macports
74/usr/share/tcl8.4/macports1.0
75#### mtree
76%dir %{prefix}
77%dir %{prefix}/bin
78%dir %{prefix}/etc
79%dir %{prefix}/include
80%dir %{prefix}/lib
81%dir %{prefix}/libexec
82     %{prefix}/man
83%dir %{prefix}/sbin
84%dir %{prefix}/share
85%dir %{prefix}/share/info
86%dir %{prefix}/share/man
87%dir %{prefix}/share/man/cat?
88%dir %{prefix}/share/man/man?
89%dir %{prefix}/share/nls
90%dir %{prefix}/share/nls/*
91#dir %{prefix}/skel
92#dir %{prefix}/src
93%dir %{prefix}/var
94
95%changelog
96* Sun Aug 12 2007 Anders F Bjorklund <afb@macports.org> - 1.5.0
97- Updated to version 1.5.0
98
99* Sun Aug 12 2007 Anders F Bjorklund <afb@macports.org> - 1.4.0
100- Initial Fedora packaging
Note: See TracBrowser for help on using the repository browser.