modernize spec file
This commit is contained in:
parent
0e9caa8ae9
commit
b4af8ad143
@ -1,15 +1,14 @@
|
|||||||
|
%global source_name libwnck
|
||||||
|
|
||||||
Summary: Window Navigator Construction Kit
|
Summary: Window Navigator Construction Kit
|
||||||
Name: libwnck3
|
Name: libwnck3
|
||||||
Version: 3.20.1
|
Version: 3.20.1
|
||||||
Release: 2%{?dist}
|
Release: 2%{?dist}
|
||||||
URL: http://download.gnome.org/sources/libwnck/
|
URL: http://download.gnome.org/sources/%{source_name}/
|
||||||
#VCS: git:git://git.gnome.org/libwnck
|
Source0: http://download.gnome.org/sources/%{source_name}/3.20/%{source_name}-%{version}.tar.xz
|
||||||
Source0: http://download.gnome.org/sources/libwnck/3.20/libwnck-%{version}.tar.xz
|
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
|
|
||||||
Requires: startup-notification
|
|
||||||
|
|
||||||
BuildRequires: glib2-devel
|
BuildRequires: glib2-devel
|
||||||
BuildRequires: gtk3-devel
|
BuildRequires: gtk3-devel
|
||||||
BuildRequires: pango-devel
|
BuildRequires: pango-devel
|
||||||
@ -20,7 +19,8 @@ BuildRequires: gettext
|
|||||||
BuildRequires: intltool
|
BuildRequires: intltool
|
||||||
BuildRequires: libtool, automake, autoconf
|
BuildRequires: libtool, automake, autoconf
|
||||||
BuildRequires: gnome-common
|
BuildRequires: gnome-common
|
||||||
Conflicts: libwnck < 2.30.4-2.fc15
|
|
||||||
|
Requires: startup-notification
|
||||||
|
|
||||||
%description
|
%description
|
||||||
libwnck (pronounced "libwink") is used to implement pagers, tasklists,
|
libwnck (pronounced "libwink") is used to implement pagers, tasklists,
|
||||||
@ -37,35 +37,41 @@ The %{name}-devel package contains libraries and header files for
|
|||||||
developing applications that use %{name}.
|
developing applications that use %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n libwnck-%{version}
|
%setup -q -n %{source_name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
rm -f libtool
|
%configure \
|
||||||
autoreconf -f -i
|
--disable-static \
|
||||||
%configure --disable-static
|
--enable-introspection=yes \
|
||||||
make %{?_smp_mflags}
|
--enable-startup-notification
|
||||||
|
|
||||||
|
%{make_build}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
|
%{make_install}
|
||||||
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
|
||||||
|
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
||||||
|
|
||||||
|
%find_lang %{source_name}-3.0 --with-gnome --all-name
|
||||||
|
|
||||||
%find_lang libwnck-3.0
|
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -f libwnck-3.0.lang
|
|
||||||
%doc AUTHORS COPYING README NEWS
|
%files -f %{source_name}-3.0.lang
|
||||||
%{_libdir}/lib*.so.*
|
%license COPYING
|
||||||
|
%doc AUTHORS README NEWS
|
||||||
|
%{_libdir}/%{source_name}-3.so.*
|
||||||
%{_bindir}/wnck-urgency-monitor
|
%{_bindir}/wnck-urgency-monitor
|
||||||
%{_libdir}/girepository-1.0/Wnck-3.0.typelib
|
%{_libdir}/girepository-1.0/Wnck-3.0.typelib
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_bindir}/wnckprop
|
%{_bindir}/wnckprop
|
||||||
%{_libdir}/lib*.so
|
%{_libdir}/%{source_name}-3.so
|
||||||
%{_libdir}/pkgconfig/*
|
%{_libdir}/pkgconfig/*
|
||||||
%{_includedir}/*
|
%{_includedir}/%{source_name}-3.0/
|
||||||
%{_datadir}/gir-1.0/Wnck-3.0.gir
|
%{_datadir}/gir-1.0/Wnck-3.0.gir
|
||||||
%doc %{_datadir}/gtk-doc
|
%doc %{_datadir}/gtk-doc
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user