dconf/dconf.spec

183 lines
5.7 KiB
RPMSpec

%define majver %(echo %version | cut -d. -f1-2)
Name: dconf
Version: 0.20.0
Release: 2mamba
Summary: A low-level configuration system
Group: System/Management
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://live.gnome.org/dconf
Source: ftp://ftp.gnome.org/pub/gnome/sources/dconf/%{majver}/dconf-%{version}.tar.xz
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: gtk-doc
BuildRequires: libatk-devel
BuildRequires: libcairo-devel
BuildRequires: libdbus-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel
BuildRequires: libgtk-devel
BuildRequires: libpango-devel
BuildRequires: libpng-devel
BuildRequires: libxml2-devel
## AUTOBUILDREQ-END
Requires: libdconf = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
dconf is a low-level configuration system. Its main purpose is to provide a backend to GSettings on platforms that don't already have configuration storage systems.
%package editor
Summary: A low-level configuration library
Group: Graphical Desktop/Applications/Configuration
Requires: dconf = %{?epoch:%epoch:}%{version}-%{release}
%description editor
dconf is a low-level configuration system. Its main purpose is to provide a backend to GSettings on platforms that don't already have configuration storage systems.
%package -n libdconf
Summary: A low-level configuration library
Group: System/Libraries
Requires: at-spi2-core
%description -n libdconf
dconf is a low-level configuration system. Its main purpose is to provide a backend to GSettings on platforms that don't already have configuration storage systems.
%package -n libdconf-devel
Summary: Development files for libdconf
Group: Development/Libraries
Requires: libdconf = %{?epoch:%epoch:}%{version}-%{release}
%description -n libdconf-devel
dconf is a low-level configuration system. Its main purpose is to provide a backend to GSettings on platforms that don't already have configuration storage systems.
This package includes the files needed for development.
%package apidocs
Group: Documentation
Summary: %{name} API documentation
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: gtk-doc
%description apidocs
This package includes the %{name} API documentation.
%prep
%setup -q
%build
%configure --enable-gtk-doc
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%find_lang %{name}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n libdconf
if [ $1 -ge 1 ]; then
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
fi
:
%postun -n libdconf
if [ $1 -eq 0 ]; then
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
fi
:
%files
%defattr(-,root,root)
%{_datadir}/bash-completion/completions/dconf
%{_bindir}/dconf
%{_mandir}/man1/dconf.1*
%{_mandir}/man7/dconf.7*
%files editor
%defattr(-,root,root)
%{_bindir}/dconf-editor
%{_datadir}/appdata/dconf-editor.appdata.xml
%{_datadir}/applications/dconf-editor.desktop
#%dir %{_datadir}/dconf-editor
#%{_datadir}/dconf-editor/*
%{_datadir}/icons/hicolor/*/apps/dconf-editor.png
%{_datadir}/icons/HighContrast/*/apps/dconf-editor.png
%{_mandir}/man1/dconf-editor.1*
%files -n libdconf -f %{name}.lang
%defattr(-,root,root)
%{_libdir}/libdconf.so.*
%{_libdir}/libdconf-dbus-1.so.*
%{_libdir}/gio/modules/libdconfsettings.so
%{_libexecdir}/dconf-service
%{_datadir}/dbus-1/services/ca.desrt.dconf.service
#%{_datadir}/dbus-1/system-services/ca.desrt.dconf.service
%{_datadir}/glib-2.0/schemas/ca.desrt.dconf-editor.gschema.xml
%{_mandir}/man1/dconf-service.1*
%doc COPYING
%files -n libdconf-devel
%defattr(-,root,root)
%dir %{_includedir}/dconf
%{_includedir}/dconf/*
%{_includedir}/dconf-dbus-1/dconf-dbus-1.h
%{_libdir}/libdconf.so
%{_libdir}/libdconf-dbus-1.so
%{_libdir}/pkgconfig/dconf*.pc
%{_datadir}/vala/vapi/dconf.deps
%{_datadir}/vala/vapi/dconf.vapi
%doc NEWS
%files apidocs
%defattr(-,root,root)
%dir %{_datadir}/gtk-doc/html/%{name}
%{_datadir}/gtk-doc/html/%{name}/*
%changelog
* Mon May 05 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.20.0-2mamba
- libdconf: require at-spi2-core
* Tue Apr 01 2014 Automatic Build System <autodist@mambasoft.it> 0.20.0-1mamba
- automatic version update by autodist
* Mon Oct 07 2013 Automatic Build System <autodist@mambasoft.it> 0.18.0-1mamba
- automatic version update by autodist
* Wed Jul 17 2013 Automatic Build System <autodist@mambasoft.it> 0.16.1-1mamba
- automatic version update by autodist
* Thu Mar 28 2013 Automatic Build System <autodist@mambasoft.it> 0.16.0-1mamba
- automatic version update by autodist
* Tue Oct 23 2012 Automatic Build System <autodist@mambasoft.it> 0.15.0-1mamba
- automatic version update by autodist
* Thu Oct 04 2012 Automatic Build System <autodist@mambasoft.it> 0.14.0-1mamba
- automatic version update by autodist
* Tue May 01 2012 Automatic Build System <autodist@mambasoft.it> 0.12.1-1mamba
- automatic version update by autodist
* Sun Apr 01 2012 Automatic Build System <autodist@mambasoft.it> 0.12.0-1mamba
- update to 0.12.0
* Mon Nov 14 2011 Automatic Build System <autodist@mambasoft.it> 0.11.0-1mamba
- automatic version update by autodist
* Sun Oct 02 2011 Automatic Build System <autodist@mambasoft.it> 0.10.0-1mamba
- automatic version update by autodist
* Thu Jul 28 2011 Automatic Build System <autodist@mambasoft.it> 0.8.0-1mamba
- update to 0.8.0
* Sun Jul 24 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.5-1mamba
- package created by autospec