]> git.pld-linux.org Git - packages/babl.git/blobdiff - babl.spec
- up to 0.1.52
[packages/babl.git] / babl.spec
index f7c578ed87b5143497124d12498e3f302e1a8286..9136a086d1afa6d8e7d1b5e9f1cc67afb9b75e9c 100644 (file)
--- a/babl.spec
+++ b/babl.spec
@@ -1,17 +1,20 @@
 #
+# Conditional build:
+%bcond_without static_libs     # static library
+#
 Summary:       Library for pixel-format agnosticism
+Summary(pl.UTF-8):     Biblioteka niezależności od formatu piksela
 Name:          babl
-Version:       0.0.14
+Version:       0.1.52
 Release:       1
-License:       GPL v2
-Group:         Applications
-Source0:       ftp://ftp.gtk.org/pub/babl/0.0/%{name}-%{version}.tar.bz2
-# Source0-md5: c8274d0a2686f7f59e979313bd8e78fe
-Patch0:                %{name}-as-needed.patch
+License:       LGPL v3+
+Group:         Libraries
+Source0:       https://download.gimp.org/pub/babl/0.1/%{name}-%{version}.tar.bz2
+# Source0-md5: 58a5e9a21890e4ed51b6231506eeb2ae
 URL:           http://www.gegl.org/babl/
-BuildRequires: autoconf
-BuildRequires: automake
-BuildRequires: glib2-devel
+BuildRequires: autoconf >= 2.54
+BuildRequires: automake >= 1:1.11
+BuildRequires: libtool >= 2:2.2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -20,14 +23,17 @@ provides conversions between the myriad of buffer types images can be
 stored in. Babl doesn't only help with existing pixel formats, but
 also facilitates creation of new and uncommon ones.
 
+%description -l pl.UTF-8
+Babl to biblioteka dynamicznych przekształceń między dowolnymi
+formatami pikseli. Udostępnia konwersje między wieloma różnymi typami
+buforów obrazów. Babl nie tylko pomaga przy istniejących formatach
+pikseli, ale także ułatwia tworzenie nowych i niestandardowych.
+
 %package devel
 Summary:       Header files for babl library
 Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki babl
 Group:         Development/Libraries
-# if base package contains shared library for which these headers are
-#Requires:     %{name} = %{version}-%{release}
-# if -libs package contains shared library for which these headers are
-#Requires:     %{name}-libs = %{version}-%{release}
+Requires:      %{name} = %{version}-%{release}
 
 %description devel
 Header files for babl library.
@@ -47,15 +53,31 @@ Static babl library.
 %description static -l pl.UTF-8
 Statyczna biblioteka babl.
 
+%package -n vala-babl
+Summary:       Vala API for babl library
+Summary(pl.UTF-8):     API języka Vala dla biblioteki babl
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+Requires:      vala
+
+%description -n vala-babl
+Vala API for babl library.
+
+%description -n vala-babl -l pl.UTF-8
+API języka Vala dla biblioteki babl.
+
 %prep
 %setup -q
-%patch0 -p1
 
 %build
-%{__aclocal}
+%{__libtoolize}
+%{__aclocal} -I m4
 %{__autoconf}
+%{__autoheader}
 %{__automake}
-%configure
+%configure \
+       --disable-silent-rules \
+       %{?with_static_libs:--enable-static}
 %{__make}
 
 %install
@@ -64,6 +86,12 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+# dlopened modules
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/babl-0.1/*.la
+%if %{with static_libs}
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/babl-0.1/*.a
+%endif
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -72,4 +100,28 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README
+%doc AUTHORS NEWS README TODO
+%attr(755,root,root) %{_libdir}/libbabl-0.1.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libbabl-0.1.so.0
+%dir %{_libdir}/babl-0.1
+%attr(755,root,root) %{_libdir}/babl-0.1/*.so
+
+%files devel
+%defattr(644,root,root,755)
+%doc docs/{*.html,*.css}
+%attr(755,root,root) %{_libdir}/libbabl-0.1.so
+%{_libdir}/libbabl-0.1.la
+%{_includedir}/babl-0.1
+%{_pkgconfigdir}/babl.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libbabl-0.1.a
+%endif
+
+%if 0
+%files -n vala-babl
+%defattr(644,root,root,755)
+%{_datadir}/vala/vapi/babl-0.1.vapi
+%endif
This page took 0.037503 seconds and 4 git commands to generate.