root/flux-redhat.spec.in

Revision 6b99e84d72c5dff024065c6b0febaa4b8a22efbf, 2.6 kB (checked in by Hans Petter Jansson <hpj@kzerza.amok>, 10 years ago)

Initial commit

  • Property mode set to 100644
Line 
1 %define          localstatedir /var/lib
2
3 Name:            @PACKAGE@
4 Version:         @VERSION@
5 Release:         0.hpj.1
6
7 Summary:         Multipurpose C library based on GLib
8 Copyright:       LGPL
9 Group:           Libraries
10 URL:             http://www.fluxlib.org/
11 Packager:        Hans Petter Jansson <hpj@copyleft.no>
12
13 Source:          %{name}-%{version}.tar.gz
14 BuildRoot:       /var/tmp/%{name}-%{version}-root
15 Requires:        glib2 >= @GLIB_REQUIRED@
16 Requires:        gmp >= @GMP_REQUIRED@
17 Requires:        zlib >= 1.1.0
18 BuildRequires:   glib2-devel >= @GLIB_REQUIRED@
19 BuildRequires:   gmp-devel >= @GMP_REQUIRED@
20 BuildRequires:   zlib-devel >= 1.1.0
21
22 %description
23 Flux is a small multi-purpose C library based on GLib.
24
25 Comments and questions should be sent to <hpj@copyleft.no>.
26 The Flux homepage is at <http://www.fluxlib.org/>.
27
28 %package devel
29 Summary:         Development files for the Flux library
30 Group:           Development/Libraries
31 Requires:        %{name} = %{version}
32 Requires:        glib2-devel >= @GLIB_REQUIRED@
33 Requires:        gmp-devel >= @GMP_REQUIRED@
34 Requires:        zlib-devel >= 1.1.0
35
36 %description devel
37 Flux is a small multi-purpose C library based on GLib. This package
38 allows you to develop applications that use the Flux library.
39
40 %prep
41 %setup
42
43 %build
44
45 %ifarch alpha
46     MYARCH_FLAGS="--host=alpha-redhat-linux"
47 %endif
48
49 # Needed for snapshot releases.
50 MYCFLAGS="$RPM_OPT_FLAGS"
51
52 if [ ! -f configure ]; then
53     CFLAGS="$MYCFLAGS" ./autogen.sh $MYARCH_FLAGS \
54         --enable-more-warnings --prefix=%{_prefix} \
55         --localstatedir=%{localstatedir} --sysconfdir=%{_sysconfdir} \
56         --mandir=%{_mandir} --libdir=%{_libdir} \
57         --includedir=%{_includedir} --bindir=%{_bindir}
58 fi
59
60 CFLAGS="$MYCFLAGS" ./configure $MYARCH_FLAGS --enable-more-warnings \
61     --prefix=%{_prefix} --localstatedir=%{localstatedir} \
62     --sysconfdir=%{_sysconfdir} --mandir=%{_mandir} \
63     --libdir=%{_libdir} --includedir=%{_includedir} \
64     --bindir=%{_bindir}
65
66 make
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70 make -k sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} \
71     prefix=$RPM_BUILD_ROOT%{_prefix} mandir=$RPM_BUILD_ROOT%{_mandir} \
72     libdir=$RPM_BUILD_ROOT%{_libdir} bindir=$RPM_BUILD_ROOT\%{_bindir} \
73     includedir=$RPM_BUILD_ROOT%{_includedir} install
74
75 %post -p /sbin/ldconfig
76 %postun -p /sbin/ldconfig
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %files
82 %defattr(-, root, root)
83
84 %doc README COPYING ChangeLog NEWS AUTHORS INSTALL
85 %{_libdir}/*.so.*
86 %{_libdir}/*.so
87
88 %files devel
89 %defattr(-, root, root)
90 %{_includedir}/%{name}
91 %{_libdir}/*.a
92 %{_libdir}/*.la
93 %{_libdir}/pkgconfig/*.pc
94 %{_prefix}/share/gtk-doc/html/%{name}
95
96 %changelog
97 * Sat Mar 22 2003 Hans Petter Jansson <hpj@copyleft.no>
98 - Wrote initial spec file.
Note: See TracBrowser for help on using the browser.