]> git.pld-linux.org Git - packages/libimobiledevice-glue.git/commitdiff
- new auto/th/libimobiledevice-glue-1.0.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 26 Nov 2023 19:51:01 +0000 (20:51 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 26 Nov 2023 19:51:01 +0000 (20:51 +0100)
libimobiledevice-glue.spec [new file with mode: 0644]

diff --git a/libimobiledevice-glue.spec b/libimobiledevice-glue.spec
new file mode 100644 (file)
index 0000000..ed75e49
--- /dev/null
@@ -0,0 +1,96 @@
+#
+# Conditional build:
+%bcond_without static_libs     # static library
+
+Summary:       Common library for libimobiledevice and co.
+Summary(pl.UTF-8):     Biblioteka wspólna dla libimobiledevice i pochodnych
+Name:          libimobiledevice-glue
+Version:       1.0.0
+Release:       1
+License:       LGPL v2+
+Group:         Libraries
+#Source0Download: https://www.libimobiledevice.org/
+Source0:       https://github.com/libimobiledevice/libimobiledevice-glue/releases/download/%{version}/%{name}-%{version}.tar.bz2
+# Source0-md5: 0f7a7b571cf6d752d66f63a68e459d24
+URL:           https://libimobiledevice.org/
+BuildRequires: libplist-devel >= 2.3.0
+BuildRequires: pkgconfig
+BuildRequires: rpm-pythonprov
+Requires:      libplist >= 2.3.0
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Library with common code used by the libraries and tools around the
+libimobiledevice project.
+
+%description -l pl.UTF-8
+Biblioteka ze wspólnym kodem używanym przez biblioteki i narzędzia
+wokół projektu libimobiledevice.
+
+%package devel
+Summary:       Header files for libimobiledevice-glue library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki libimobiledevice-glue
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      libplist-devel >= 2.3.0
+
+%description devel
+Header files for libimobiledevice-glue library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libimobiledevice-glue.
+
+%package static
+Summary:       Static libimobiledevice-glue library
+Summary(pl.UTF-8):     Statyczna biblioteka libimobiledevice-glue
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static libimobiledevice-glue library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libimobiledevice-glue.
+
+%prep
+%setup -q
+
+%build
+%configure \
+       --disable-silent-rules \
+       %{!?with_static_libs:--disable-static}
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libimobiledevice-glue-1.0.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc NEWS README.md
+%attr(755,root,root) %{_libdir}/libimobiledevice-glue-1.0.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libimobiledevice-glue-1.0.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libimobiledevice-glue-1.0.so
+%{_includedir}/libimobiledevice-glue
+%{_pkgconfigdir}/libimobiledevice-glue-1.0.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libimobiledevice-glue-1.0.a
+%endif
This page took 0.123276 seconds and 4 git commands to generate.