Name: compiz-bcop
Version: 0.5.2
Release: 1
-License: GPL
-Group: X11/Applications
+License: GPL v2+
+Group: Development/Tools
Source0: http://releases.compiz-fusion.org/%{version}/%{name}-%{version}.tar.bz2
# Source0-md5: f6d5bcd605cdbf4f49f2bb7e602d3bb5
-Patch0: %{name}-pkgconfig.patch
-BuildRequires: autoconf
-BuildRequires: automake
-BuildRequires: libtool
+URL: http://forum.compiz-fusion.org/
+BuildRequires: autoconf >= 2.57
+BuildRequires: automake >= 1:1.9
+# only for configure check
BuildRequires: libxslt-devel
BuildRequires: pkgconfig
+Requires: /usr/bin/getopt
+# xsltproc
+Requires: libxslt-progs
+Requires: pkgconfig >= 1:0.19
+BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define _noarchpkgconfigdir %{_datadir}/pkgconfig
+
%description
BCOP is a code generator that provides an easy way to handle plugin
-options by generating parts of the plugin code directly from the xml
+options by generating parts of the plugin code directly from the XML
metadata file. It is used for most of the Compiz Fusion plugins.
%description -l pl.UTF-8
BCOP jest generatorem kodu, który pozwala na łatwą obsługę opcji
wtyczek poprzez generowanie części kodu wtyczki bezpośrednio z pliku
-xml metadanych. Jest używany przez większość wtyczek Compiz Fusion.
+XML metadanych. Jest używany przez większość wtyczek Compiz Fusion.
%prep
%setup -q
-%patch0 -p1
echo "echo -n %{version}" > VERSION
%build
-%{__libtoolize}
%{__aclocal}
%{__autoconf}
%{__autoheader}
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc AUTHORS
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/bcop
%{_datadir}/bcop
-%{_pkgconfigdir}/*
+%{_noarchpkgconfigdir}/bcop.pc