LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File sdcv.spec of Package sdcv (Project Education)

#
# spec file for package sdcv (Version 0.4.2)
#
# Copyright 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright Vincent Petry <PVince81@yahoo.fr>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

Name:           sdcv
BuildRequires:  gcc-c++ zlib-devel glib2-devel readline-devel gettext-tools
Summary:        Console version of the Stardict program
Version:        0.4.2
Release:        1
License:        GPLv2
Group:          Productivity/Office/Dictionary
Url:            http://sdcv.sourceforge.net/
Source:         http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
# The patches come from the Debian version
Patch0: %{name}-%{version}-gettext.patch
Patch1: %{name}-%{version}-manpage.patch
Patch2: %{name}-%{version}-c++.patch
Patch3: %{name}-%{version}-format.patch
Patch4: %{name}-%{version}-locales.patch
Patch5: %{name}-%{version}-sk.po.patch
Patch6: %{name}-%{version}-cs.po.patch
Patch7: %{name}-%{version}-fr.po.patch
Patch8: %{name}-%{version}-fix-tests.patch
Patch9: %{name}-%{version}-use-env-home.patch
Patch10: %{name}-%{version}-allignment.patch
Patch11: %{name}-%{version}-fix-formats.patch
Patch12: %{name}-%{version}-zlib-return-value.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Console version of the Stardict program.
It can employ all the dictionary files that belong to StarDict.
The word sdcv stands for StarDict under Console Version.

Authors:
--------
	Evgeniy Dushistov <dushistov@mail.ru>
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1

# remove the old gettext m4 and replace it with the new one
cp -f %{_datadir}/aclocal/gettext.m4 m4/
export CXXFLAGS="$RPM_OPT_FLAGS"
autoreconf
%configure

%build
# force recreation of the locale files
cd po && rm -f *.gmo && make update-po && cd ..
make

%install
make DESTDIR=%{buildroot} install
strip %{buildroot}/%{_bindir}/%{name}
%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-,root,root,-)
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.gz
%dir %{_mandir}/uk/
%dir %{_mandir}/uk/man1/
%{_mandir}/uk/man1/%{name}.1.gz
%doc TODO README NEWS BUGS COPYING ABOUT-NLS AUTHORS ChangeLog

%changelog