LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File libwacom.spec of Package libwacom (Project home:aevseev)

%define realname libwacom
%define realver  0.29
%define srcext   tar.bz2

%define so_ver   2

# turn off the generation of debuginfo rpm  (RH9) ??
%global debug_package %{nil}

# Common info
Name:          %{realname}%{?so_ver}
Version:       %{realver}
Release:       wiz%{?extraver:0.}1%{?dist}
License:       GPL-2.0
Group:         System/Libraries
URL:           https://sourceforge.net/projects/linuxwacom/
Summary:       Library for configuring and running Wacom tablets

# Install-time parameters
Requires:      %{realname}-data

# Build-time parameters
BuildRequires: pkg-config
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(gudev-1.0)
BuildRequires: pkgconfig(librsvg-2.0)
BuildRequires: pkgconfig(libxml-2.0)
BuildRoot:     %{_tmppath}/%{name}-root
Source:        https://sourceforge.net/projects/linuxwacom/files/libwacom/%{realname}-%{realver}%{?extraver}.%{srcext}

%description
The Linux Wacom Project manages the drivers, libraries, and documentation for
configuring and running Wacom tablets under the Linux operating system. Our
drivers are included in several major distributions and provide out-of-the box
support for a wide variety of Wacom tablets and TabletPCs.

%package -n %{realname}-data
Group:         Hardware/Other
Summary:       Tablets configuration data

%description -n %{realname}-data
Tablets configuration data

%package -n %{realname}-devel
Group:         Development/Languages/C and C++
Summary:       Development files for %{name}
Requires:      %{name} = %{version}
Provides:      %{name}-devel = %{version}

%description -n %{realname}-devel
Development files for %{name}

%package -n %{realname}-tools
Group:         Hardware/Other
Summary:       Tools for configuring and running Wacom tablets

%description -n %{realname}-tools
The Linux Wacom Project manages the drivers, libraries, and documentation for
configuring and running Wacom tablets under the Linux operating system. Our
drivers are included in several major distributions and provide out-of-the box
support for a wide variety of Wacom tablets and TabletPCs.

This package contains tools to identify and configure Wacom tablets.

# Preparation step (unpackung and patching if necessary)
%prep
%setup -q -n %{realname}-%{realver}%{?extraver}

%build
%configure \
 --disable-static \
 CFLAGS="%{optflags} %{?gcc_lto}" \
 CXXFLAGS="%{optflags} %{?gcc_lto}" \
 LDFLAGS="-Wl,--as-needed -Wl,--strip-all %{?gcc_lto}"
%{__make} %{?_smp_mflags}

%install
%{__make} install DESTDIR=%{buildroot}

%clean
[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING NEWS README
%{_libdir}/%{realname}.so.%{?so_ver}*

# Data
%files -n %{realname}-data
%defattr(-,root,root)
%doc COPYING NEWS README
%dir %{_datadir}/%{realname}/
%{_datadir}/%{realname}/*

# Development stuff
%files -n %{realname}-devel
%defattr(-,root,root)
%doc COPYING NEWS README
%{_libdir}/pkgconfig/%{realname}.pc
%dir %{_includedir}/%{realname}-1.0/%{realname}
%dir %{_includedir}/%{realname}-1.0
%{_includedir}/%{realname}-1.0/%{realname}/libwacom.h
%{_libdir}/%{realname}.so
%exclude %{_libdir}/*.la

# Tools
%files -n %{realname}-tools
%defattr(-,root,root)
%doc COPYING NEWS README
%{_bindir}/libwacom-list-local-devices

%post   -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%changelog