]> git.pld-linux.org Git - packages/dia.git/commitdiff
- added more rpm macros.
authorkloczek <kloczek@pld-linux.org>
Sat, 29 May 1999 17:27:41 +0000 (17:27 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dia.spec -> 1.15

dia.spec

index 54ec6d2108d80fec4f729920a89399da7ef50ea9..09c1a7162dd3dccbfc228556b16333d41deaa3d1 100644 (file)
--- a/dia.spec
+++ b/dia.spec
@@ -19,6 +19,8 @@ BuildPrereq:  gettext
 Requires:      gtk+ >= 1.2.0
 BuildRoot:     /tmp/%{name}-%{version}-root
 
+%define _prefix /usr/X11R6
+
 %description
 Dia is a program designed to be much like the Windows program 'Visio'. It
 can be used to draw different kind of diagrams. In this first version there
@@ -39,7 +41,7 @@ i zapisywa
 %build
 CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
 ./configure %{_target} \
-       --prefix=/usr/X11R6
+       --prefix=%{_prefix}
 make
 
 %install
@@ -50,7 +52,7 @@ make install DESTDIR=$RPM_BUILD_ROOT
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/X11/wmconfig/%{name}
 
-strip $RPM_BUILD_ROOT/usr/X11R6/{bin/*,lib/dia/lib*.so.*.*}
+strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/dia/lib*.so.*.*
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -58,12 +60,16 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS NEWS README TODO
-%attr(755,root,root) /usr/X11R6/bin/dia
-%dir /usr/X11R6/lib/dia
-%attr(755,root,root) /usr/X11R6/lib/dia/lib*.so*
-%attr(755,root,root) /usr/X11R6/lib/dia/lib*.la
+%attr(755,root,root) %{_bindir}/dia
+%dir %{_libdir}/dia
+%attr(755,root,root) %{_libdir}/dia/lib*.so*
+%attr(755,root,root) %{_libdir}/dia/lib*.la
 
 %changelog
+* Sat May 29 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
+  [0.41-3]
+- added more rpm macros.
+
 * Wed Apr 21 1999 Piotr Czerwiñski <pius@pld.org.pl>
   [0.41-2]
 - recompiled on rpm 3.
This page took 0.071035 seconds and 4 git commands to generate.