Commit c866618c authored by Ramiro Estrugo's avatar Ramiro Estrugo

First try at a spec file.

	* .cvsignore:
	* Makefile.am:
	* configure.in:
	* librsvg.spec.in:
	First try at a spec file.
parent 9d959679
......@@ -20,4 +20,5 @@ librsvg-1.0.pc
.libs
test-ft-gtk
test-ft
test-rsvg
\ No newline at end of file
test-rsvg
librsvg-*.tar.gz
2001-04-02 Ramiro Estrugo <ramiro@eazel.com>
* .cvsignore:
* Makefile.am:
* configure.in:
* librsvg.spec.in:
First try at a spec file.
2001-03-28 Ramiro Estrugo <ramiro@eazel.com>
Started ChangeLog
......@@ -3,10 +3,11 @@ noinst_PROGRAMS = test-ft-gtk test-ft test-rsvg
bin_SCRIPTS = \
librsvg-config
EXTRA_DIST = \
librsvg.m4 \
librsvgConf.sh.in \
librsvg-config.in \
EXTRA_DIST =\
librsvg.spec.in \
librsvg.m4 \
librsvgConf.sh.in \
librsvg-config.in \
librsvg-1.0.pc.in
lib_LTLIBRARIES = librsvg.la
......@@ -109,3 +110,6 @@ librsvgConf.sh: librsvgConf.sh.in Makefile
-e 's?\@LIBRSVG_LIBS\@?$(LIBRSVG_LIBS)?g' \
< $(srcdir)/librsvgConf.sh.in > librsvgConf.tmp \
&& mv librsvgConf.tmp librsvgConf.sh
dist-hook: librsvg.spec
cp librsvg.spec $(distdir)
......@@ -352,6 +352,7 @@ AC_SUBST(LIBRSVG_LIBS)
AC_C_BIGENDIAN
AC_OUTPUT([
librsvg.spec
librsvg-features.h
Makefile
librsvg-config
......
# Note that this is NOT a relocatable package
%define name librsvg
%define ver @VERSION@
%define RELEASE 0_cvs_0
%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
%define prefix /usr
%define sysconfdir /etc
Name: %name
Vendor: GNOME
Distribution: CVS
Summary: Raph's SVG library
Version: %ver
Release: %rel
Copyright: LGPL
Group: System Environment/Libraries
Source: %{name}-%{ver}.tar.gz
URL: http://nautilus.eazel.com/
BuildRoot: /var/tmp/%{name}-%{ver}-root
Docdir: %{prefix}/doc
Requires: glib >= @GLIB_REQUIRED@
Requires: gtk+ >= @GTK_REQUIRED@
Requires: imlib >= @IMLIB_REQUIRED@
Requires: libxml >= @LIBXML_REQUIRED@
Requires: gnome-libs >= @GNOME_LIBS_REQUIRED@
Requires: gnome-vfs >= @GNOME_VFS_REQUIRED@
Requires: gdk-pixbuf >= @GDK_PIXBUF_REQUIRED@
Requires: popt >= @POPT_REQUIRED@
Requires: freetype >= @FREETYPE_REQUIRED@
Requires: libpng
%description
Eazel Extension Library
%package devel
Summary: Libraries and include files for developing with librsvg.
Group: Development/Libraries
Requires: %name = %{PACKAGE_VERSION}
%description devel
This package provides the necessary development libraries and include
files to allow you to develop with librsvg.
%changelog
* Tue Oct 10 2000 Robin Slomkowski <rslomkow@eazel.com>
- removed obsoletes from sub packages and added mozilla and trilobite
subpackages
* Wed Apr 26 2000 Ramiro Estrugo <ramiro@eazel.com>
- created this thing
%prep
%setup
%build
%ifarch alpha
MYARCH_FLAGS="--host=alpha-redhat-linux"
%endif
LC_ALL=""
LINGUAS=""
LANG=""
export LC_ALL LINGUAS LANG
## Warning! Make sure there are no spaces or tabs after the \
## continuation character, or else the rpm demons will eat you.
CFLAGS="$RPM_OPT_FLAGS" ./configure $MYARCH_FLAGS --prefix=%{prefix} \
--sysconfdir=%{sysconfdir}
make -k
make check
%install
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
make -k prefix=$RPM_BUILD_ROOT%{prefix} sysconfdir=$RPM_BUILD_ROOT%{sysconfdir} install
for FILE in "$RPM_BUILD_ROOT/bin/*"; do
file "$FILE" | grep -q not\ stripped && strip $FILE
done
%clean
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
%post
if ! grep %{prefix}/lib /etc/ld.so.conf > /dev/null ; then
echo "%{prefix}/lib" >> /etc/ld.so.conf
fi
/sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(0555, bin, bin)
%doc AUTHORS COPYING COPYING.LIB ChangeLog NEWS README
%{prefix}/lib/*.so*
%files devel
%defattr(0555, bin, bin)
%{prefix}/lib/*.la
%{prefix}/lib/*.sh
%{prefix}/bin/rsvg-config
%defattr(0444, bin, bin)
%{prefix}/include/rsvg/*.h
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment