summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwaszi2000-08-23 21:37:55 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commitdec79a1e37279edab0acaeeac53886978cf2ff1c (patch)
tree5c86d60da9fca6ae771f1ec601b2964b4aad8fb3
parente2e00cd1975778ef5cf2ad3d57e226d359f083e3 (diff)
downloadlibgsm-dec79a1e37279edab0acaeeac53886978cf2ff1c.zip
libgsm-dec79a1e37279edab0acaeeac53886978cf2ff1c.tar.gz
- partially rewrited
Changed files: libgsm.spec -> 1.5
-rw-r--r--libgsm.spec26
1 files changed, 15 insertions, 11 deletions
diff --git a/libgsm.spec b/libgsm.spec
index 0116016..c919561 100644
--- a/libgsm.spec
+++ b/libgsm.spec
@@ -3,7 +3,7 @@ Name: libgsm
Version: 1.0.10
Release: 1
Source0: ftp://ftp.cs.tu-berlin.de/pub/local/kbs/tubmik/gsm/gsm-%{version}.tar.gz
-Patch0: gsm-1.0.9-makefile.patch
+Patch0: %{name}-makefile.patch
Group: Libraries
Copyright: Free/Copyright Technische Universitaet Berlin
Vendor: Tycho Softworks
@@ -21,25 +21,29 @@ audio over the Internet.
%patch -p1
%build
-%{__make} RPM_OPT_FLAGS="${RPM_OPT_FLAGS}"
+%{__make} OPTFLAGS="$RPM_OPT_FLAGS"
%install
rm -rf $RPM_BUILD_ROOT
-install -d ${RPM_BUILD_ROOT}%{_prefix}/{bin,man/man{1,3},include,lib}
-%{__make} INSTALL_ROOT=${RPM_BUILD_ROOT}%{_prefix} install
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man{1,3},%{_includedir},%{_libdir}}
+
+%{__make} install INSTALL_ROOT=$RPM_BUILD_ROOT
+
+echo .so toast.1 >$RPM_BUILD_ROOT%{_mandir}/man1/tcat.1
+echo .so toast.1 >$RPM_BUILD_ROOT%{_mandir}/man1/untoast.1
+
+gzip -9nf $RPM_BUILD_ROOT%{_mandir}/*/* \
+ COPYRIGHT ChangeLog INSTALL MACHINES MANIFEST README
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
-%doc COPYRIGHT ChangeLog INSTALL MACHINES MANIFEST README
-%defattr(-,root,root)
-%attr(755,root,root) %{_bindir}/toast
-%attr(755,root,root) %{_bindir}/untoast
-%attr(755,root,root) %{_bindir}/tcat
-%{_prefix}/man/man3/*
-%{_includedir}/gsm.h
+%doc {COPYRIGHT,ChangeLog,INSTALL,MACHINES,MANIFEST,README}.gz
+%attr(755,root,root) %{_bindir}/*
+%{_mandir}/*/*
+%{_includedir}/*
%{_libdir}/libgsm*
%clean