source: trunk/third/librsvg/librsvg.spec.in @ 17277

Revision 17277, 2.5 KB checked in by amb, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r17276, which included commits to RCS files with non-trunk default branches.
Line 
1# Note that this is NOT a relocatable package
2%define name            librsvg
3%define ver             @VERSION@
4%define RELEASE         0_cvs_0
5%define rel             %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
6%define prefix          /usr
7%define sysconfdir      /etc
8
9Name:           %name
10Vendor:         GNOME
11Distribution:   CVS
12Summary:        Raph's SVG library
13Version:        %ver
14Release:        %rel
15Copyright:      LGPL
16Group:          System Environment/Libraries
17Source:         %{name}-%{ver}.tar.gz
18URL:            http://nautilus.eazel.com/
19BuildRoot:      /var/tmp/%{name}-%{ver}-root
20Docdir:         %{prefix}/doc
21Requires:       glib >= @GLIB_REQUIRED@
22Requires:       gtk+ >= @GTK_REQUIRED@
23Requires:       libxml >= @LIBXML_REQUIRED@
24Requires:       gdk-pixbuf >= @GDK_PIXBUF_REQUIRED@
25Requires:       popt >= @POPT_REQUIRED@
26Requires:       freetype >= @FREETYPE_REQUIRED@
27Requires:       libpng
28
29%description
30Eazel Extension Library
31
32%package devel
33Summary:        Libraries and include files for developing with librsvg.
34Group:          Development/Libraries
35Requires:       %name = %{PACKAGE_VERSION}
36
37%description devel
38This package provides the necessary development libraries and include
39files to allow you to develop with librsvg.
40
41%changelog
42* Tue Oct 10 2000 Robin Slomkowski <rslomkow@eazel.com>
43- removed obsoletes from sub packages and added mozilla and trilobite
44subpackages
45
46* Wed Apr 26 2000 Ramiro Estrugo <ramiro@eazel.com>
47- created this thing
48
49%prep
50%setup
51
52%build
53%ifarch alpha
54        MYARCH_FLAGS="--host=alpha-redhat-linux"
55%endif
56
57LC_ALL=""
58LINGUAS=""
59LANG=""
60export LC_ALL LINGUAS LANG
61
62## Warning!  Make sure there are no spaces or tabs after the \
63## continuation character, or else the rpm demons will eat you.
64CFLAGS="$RPM_OPT_FLAGS" ./configure $MYARCH_FLAGS --prefix=%{prefix} \
65        --sysconfdir=%{sysconfdir}
66
67make -k
68make check
69
70%install
71[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
72make -k prefix=$RPM_BUILD_ROOT%{prefix} sysconfdir=$RPM_BUILD_ROOT%{sysconfdir} install
73for FILE in "$RPM_BUILD_ROOT/bin/*"; do
74        file "$FILE" | grep -q not\ stripped && strip $FILE
75done
76
77%clean
78[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
79
80%post
81if ! grep %{prefix}/lib /etc/ld.so.conf > /dev/null ; then
82        echo "%{prefix}/lib" >> /etc/ld.so.conf
83fi
84/sbin/ldconfig
85
86%postun -p /sbin/ldconfig
87
88%files
89
90%defattr(0555, bin, bin)
91%doc AUTHORS COPYING COPYING.LIB ChangeLog NEWS README
92%{_libdir}/*.so*
93
94%files devel
95
96%defattr(0555, bin, bin)
97%{_libdir}/*.la
98%{_libdir}/*.sh
99%{_bindir}/librsvg-config
100
101%defattr(0444, bin, bin)
102%{_includedir}/librsvg-1/librsvg/*.h
103%{_datadir}/aclocal/librsvg.m4
104%{_libdir}/pkgconfig/librsvg-1.0.pc
105
106
Note: See TracBrowser for help on using the repository browser.