]> git.pld-linux.org Git - packages/libwmf.git/blobdiff - libwmf.spec
- added _without_static bcond
[packages/libwmf.git] / libwmf.spec
index 9818bc9f87b5ec7cb54c76548e6842fcd6cced27..ceb4215702ba7db76ca9208417143932b4e1d130 100644 (file)
@@ -1,12 +1,13 @@
 #
 # Conditional build:
-# _without_gtk - without gtk-loader package (which requires gtk+2-devel)
+# _without_gtk         - without gtk-loader package (which requires gtk+2-devel)
+# _without_static      - without static version
 #
 Summary:       libwmf - library to convert wmf files
 Summary(pl):   libwmf - biblioteka z funkcjami do konwersji plików wmf
 Name:          libwmf
 Version:       0.2.8
-Release:       1
+Release:       2
 Epoch:         2
 License:       GPL
 Group:         Applications/Text
@@ -46,7 +47,7 @@ okienku oraz format xpm.
 Summary:       libwmf - header files
 Summary(pl):   libwmf - pliki nag³ówkowe
 Group:         Development/Libraries
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}
 
 %description devel
 This package contains libwmf header files.
@@ -58,7 +59,7 @@ Pakiet zawiera pliki nag
 Summary:       libwmf - static libraries
 Summary(pl):   libwmf - biblioteki statyczne
 Group:         Development/Libraries
-Requires:      %{name}-devel = %{version}
+Requires:      %{name}-devel = %{epoch}:%{version}
 
 %description static
 This package contains libwmf static libraries.
@@ -70,7 +71,7 @@ Pakiet zawiera statyczn
 Summary:       WMF loader for gdk_pixbuf 2.x library
 Summary(pl):   Modu³ wczytuj±cy WMF dla biblioteki gdk_pixbuf 2.x
 Group:         X11/Libraries
-Requires:      %{name} = %{version}
+Requires:      %{name} = %{epoch}:%{version}
 
 %description gtk-loader
 WMF loader for gdk_pixbuf 2.x library.
@@ -88,6 +89,7 @@ Modu
 rm -f missing
 %{__libtoolize}
 %{__aclocal}
+%{__autoheader}
 %{__autoconf}
 %{__automake}
 %configure \
@@ -136,9 +138,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/*.la
 %{_includedir}/*
 
+%if 0%{!?_without_static:1}
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/*.a
+%endif
 
 %if %{?_without_gtk:0}%{!?_without_gtk:1}
 %files gtk-loader
This page took 0.064121 seconds and 4 git commands to generate.