libunique1/libunique1.spec

114 lines
3.9 KiB
RPMSpec
Raw Permalink Normal View History

%define majver %(echo %version | cut -d. -f1-2)
Name: libunique1
Version: 1.1.6
Release: 6mamba
Summary: A library for writing single instance application
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://live.gnome.org/LibUnique
Source: http://ftp.gnome.org/pub/GNOME/sources/libunique/%{majver}/libunique-%{version}.tar.bz2
Patch0: libunique-1.1.6-glib-2.32.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libX11-devel
BuildRequires: libXau-devel
BuildRequires: libXdmcp-devel
BuildRequires: libatk-devel
BuildRequires: libbzip2-devel
BuildRequires: libcairo-devel
BuildRequires: libdbus-devel
BuildRequires: libdbus-glib-devel
BuildRequires: libexpat-devel
BuildRequires: libffi-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libglib-devel
BuildRequires: libgraphite2-devel
BuildRequires: libgtk2-devel
BuildRequires: libharfbuzz-devel
BuildRequires: libpango-devel
BuildRequires: libpng-devel
BuildRequires: libselinux-devel
BuildRequires: libxcb-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Unique is a library for writing single instance application. If you launch a single instance application twice, the second instance will either just quit or will send a message to the running instance.
Unique makes it easy to write this kind of applications, by providing a base class, taking care of all the IPC machinery needed to send messages to a running instance, and also handling the startup notification side.
%package devel
Summary: Devel package for %{name}
Group: Development/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
Unique is a library for writing single instance application. If you launch a single instance application twice, the second instance will either just quit or will send a message to the running instance.
Unique makes it easy to write this kind of applications, by providing a base class, taking care of all the IPC machinery needed to send messages to a running instance, and also handling the startup notification side.
This package contains static libraries and header files need for development.
%prep
%setup -q -n libunique-%{version}
%patch0 -p1
%build
%configure
%make\
CFLAGS="${CFLAGS} -Wno-deprecated-declarations -Wno-unused-but-set-variable"
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_libdir}/libunique-1.0.so.*
%doc AUTHORS COPYING
%files devel
%defattr(-,root,root)
%{_libdir}/libunique-1.0.a
%{_libdir}/libunique-1.0.la
%{_libdir}/libunique-1.0.so
%{_libdir}/girepository-1.0/Unique-1.0.typelib
%{_datadir}/gir-1.0/Unique-1.0.gir
%{_includedir}/unique-1.0/unique/unique*.h
%{_datadir}/gtk-doc/html/unique/*
%{_libdir}/pkgconfig/*.pc
%doc ChangeLog NEWS README
%changelog
* Thu Feb 20 2014 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 1.1.6-6mamba
- fix build for x86_64 architecture
* Fri Jun 08 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.6-5mamba
- added glib 2.32 build patch
* Mon Jul 25 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.6-4mamba
- rebuilt as legacy package
* Thu Oct 28 2010 Automatic Build System <autodist@mambasoft.it> 1.1.6-3mamba
- automatic rebuild by autodist
* Sat Jun 26 2010 Automatic Build System <autodist@mambasoft.it> 1.1.6-2mamba
- automatic rebuild by autodist
* Thu Jun 03 2010 Automatic Build System <autodist@mambasoft.it> 1.1.6-1mamba
- automatic update by autodist
* Sun Sep 27 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.2-1mamba
- update to 1.1.2
* Mon Mar 30 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.8-1mamba
- package created by autospec