160 lines
5.5 KiB
RPMSpec
160 lines
5.5 KiB
RPMSpec
|
#
|
||
|
# spec file for package gnome-autoar
|
||
|
#
|
||
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||
|
#
|
||
|
# All modifications and additions to the file contributed by third parties
|
||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||
|
# upon. The license for this file, and modifications and additions to the
|
||
|
# file, is the same license as for the pristine package itself (unless the
|
||
|
# license for the pristine package is not an Open Source License, in which
|
||
|
# case the license is the MIT License). An "Open Source License" is a
|
||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||
|
# published by the Open Source Initiative.
|
||
|
|
||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||
|
#
|
||
|
|
||
|
|
||
|
Name: gnome-autoar
|
||
|
Version: 0+20160825.0fec26d
|
||
|
Release: 0
|
||
|
Summary: Automatic archives creating and extracting library
|
||
|
License: LGPL-2.0+
|
||
|
Group: System/GUI/GNOME
|
||
|
Url: https://git.gnome.org/browse/gnome-autoar
|
||
|
# Service generated tarball, no releases yet
|
||
|
Source: %{name}-%{version}.tar.xz
|
||
|
# Needed, as we provide a git snapshot
|
||
|
BuildRequires: gnome-common
|
||
|
BuildRequires: gobject-introspection-devel
|
||
|
BuildRequires: pkgconfig
|
||
|
BuildRequires: pkgconfig(gio-2.0) >= 2.35.6
|
||
|
BuildRequires: pkgconfig(glib-2.0) >= 2.35.6
|
||
|
BuildRequires: pkgconfig(gobject-2.0) >= 2.35.6
|
||
|
BuildRequires: pkgconfig(gtk+-3.0) >= 3.2
|
||
|
BuildRequires: pkgconfig(libarchive) >= 3.1.0
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
|
||
|
%description
|
||
|
gnome-autoar provides functions, widgets, and gschemas for GNOME applications which want
|
||
|
to use archives as a method to transfer directories over the Internet.
|
||
|
|
||
|
%package schema
|
||
|
Summary: Automatic archives creating and extracting library -- GSettings schema
|
||
|
Group: System/Libraries
|
||
|
|
||
|
%description schema
|
||
|
gnome-autoar provides functions, widgets, and gschemas for GNOME applications which want
|
||
|
to use archives as a method to transfer directories over the Internet.
|
||
|
|
||
|
This package provides mandatory schema extenstions for the library
|
||
|
|
||
|
%package -n libgnome-autoar-0-0
|
||
|
Summary: Automatic archives creating and extracting library
|
||
|
Group: System/Libraries
|
||
|
Requires: %{name}-schema >= %{version}
|
||
|
|
||
|
%description -n libgnome-autoar-0-0
|
||
|
gnome-autoar provides functions, widgets, and gschemas for GNOME applications which want
|
||
|
to use archives as a method to transfer directories over the Internet.
|
||
|
|
||
|
%package -n libgnome-autoar-gtk-0-0
|
||
|
Summary: Automatic archives creating and extracting library
|
||
|
Group: System/Libraries
|
||
|
|
||
|
%description -n libgnome-autoar-gtk-0-0
|
||
|
gnome-autoar provides functions, widgets, and gschemas for GNOME applications which want
|
||
|
to use archives as a method to transfer directories over the Internet.
|
||
|
|
||
|
%package -n typelib-1_0-GnomeAutoar-0_1
|
||
|
Summary: Automatic archives creating and extracting library -- Introspection bindings
|
||
|
Group: System/Libraries
|
||
|
|
||
|
%description -n typelib-1_0-GnomeAutoar-0_1
|
||
|
gnome-autoar provides functions, widgets, and gschemas for GNOME applications which want
|
||
|
to use archives as a method to transfer directories over the Internet.
|
||
|
|
||
|
%package -n typelib-1_0-GnomeAutoarGtk-0_1
|
||
|
Summary: Automatic archives creating and extracting library -- Introspection bindings
|
||
|
Group: System/Libraries
|
||
|
|
||
|
%description -n typelib-1_0-GnomeAutoarGtk-0_1
|
||
|
gnome-autoar provides functions, widgets, and gschemas for GNOME applications which want
|
||
|
to use archives as a method to transfer directories over the Internet.
|
||
|
|
||
|
%package devel
|
||
|
Summary: Automatic archives creating and extracting library
|
||
|
Group: Development/Languages/C and C++
|
||
|
Requires: libgnome-autoar-0-0 = %{version}
|
||
|
Requires: libgnome-autoar-gtk-0-0 = %{version}
|
||
|
Requires: typelib-1_0-GnomeAutoar-0_1 = %{version}
|
||
|
Requires: typelib-1_0-GnomeAutoarGtk-0_1 = %{version}
|
||
|
|
||
|
%description devel
|
||
|
gnome-autoar provides functions, widgets, and gschemas for GNOME applications which want
|
||
|
to use archives as a method to transfer directories over the Internet.
|
||
|
|
||
|
This package brings files required to develop against gnome-autoar
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
|
||
|
%build
|
||
|
./autogen.sh
|
||
|
%configure \
|
||
|
--disable-static
|
||
|
make %{?_smp_mflags}
|
||
|
|
||
|
%install
|
||
|
make %{?_smp_mflags} DESTDIR=%{buildroot} install
|
||
|
find %{buildroot} -type f -name "*.la" -delete -print
|
||
|
|
||
|
%post schema
|
||
|
%glib2_gsettings_schema_post
|
||
|
|
||
|
%postun schema
|
||
|
%glib2_gsettings_schema_postun
|
||
|
|
||
|
%post -n libgnome-autoar-0-0 -p /sbin/ldconfig
|
||
|
%postun -n libgnome-autoar-0-0 -p /sbin/ldconfig
|
||
|
%post -n libgnome-autoar-gtk-0-0 -p /sbin/ldconfig
|
||
|
%postun -n libgnome-autoar-gtk-0-0 -p /sbin/ldconfig
|
||
|
|
||
|
%files schema
|
||
|
%defattr(-,root,root)
|
||
|
%{_datadir}/glib-2.0/schemas/org.gnome.desktop.archives.enums.xml
|
||
|
%{_datadir}/glib-2.0/schemas/org.gnome.desktop.archives.gschema.xml
|
||
|
|
||
|
%files devel
|
||
|
%defattr(-,root,root)
|
||
|
%{_includedir}/gnome-autoar-0/
|
||
|
%{_includedir}/gnome-autoar-gtk-0/
|
||
|
%{_libdir}/libgnome-autoar-0.so
|
||
|
%{_libdir}/libgnome-autoar-gtk-0.so
|
||
|
%{_libdir}/pkgconfig/gnome-autoar-0.pc
|
||
|
%{_libdir}/pkgconfig/gnome-autoar-gtk-0.pc
|
||
|
%{_datadir}/gir-1.0/GnomeAutoar-0.1.gir
|
||
|
%{_datadir}/gir-1.0/GnomeAutoarGtk-0.1.gir
|
||
|
|
||
|
%files -n typelib-1_0-GnomeAutoar-0_1
|
||
|
%defattr(-,root,root)
|
||
|
#doc COPYING
|
||
|
%{_libdir}/girepository-1.0/GnomeAutoar-0.1.typelib
|
||
|
|
||
|
%files -n typelib-1_0-GnomeAutoarGtk-0_1
|
||
|
%defattr(-,root,root)
|
||
|
%{_libdir}/girepository-1.0/GnomeAutoarGtk-0.1.typelib
|
||
|
|
||
|
%files -n libgnome-autoar-0-0
|
||
|
%defattr(-,root,root)
|
||
|
%{_libdir}/libgnome-autoar-0.so.0
|
||
|
%{_libdir}/libgnome-autoar-0.so.0.0.0
|
||
|
|
||
|
%files -n libgnome-autoar-gtk-0-0
|
||
|
%defattr(-,root,root)
|
||
|
%{_libdir}/libgnome-autoar-gtk-0.so.0
|
||
|
%{_libdir}/libgnome-autoar-gtk-0.so.0.0.0
|
||
|
|
||
|
%changelog
|