File libxdtv-i18n-gl.spec of Package libxdtv-i18n-gl

#
# spec file for package libxdtv (Version 2.4.0)
#
#
# neededforbuild alsa alsa-devel expat faad2 faad2-devel fontconfig fontconfig-devel freetype2 freetype2-devel gcc-c++ libstdc++-devel lame libffmpeg0 libffmpeg0-devel libjpeg libjpeg-devel libpng libpng-devel libvorbis libvorbis-devel libogg libogg-devel lirc ncurses ncurses-devel resmgr xorg-x11 xorg-x11-devel xorg-x11-libs xvid xvid-devel zvbi zvbi-devel update-desktop-files xdtv xdtv-devel

%define _unpackaged_files_terminate_build 0

# build with -with nopic
%define build_nopic 0
%{?_with_nopic: %{expand: %%define build_nopic 1}}

%define name                    libxdtv-i18n-gl
%define version                 2.4.0
%define release                 1
%define summary                 %{name} is a gl NLS library for XdTV

Name:                           %{name}
Summary:                        %{summary}
Version:                        %{version}
Release:                        %{release}
License:                      GPL
Distribution:                   All Linux Distributions
URL:                            http://xawdecode.sourceforge.net/
Source0:                        %{name}-%{version}.tar.gz
Group:                          Hardware/TV

Requires:                       xdtv >= 2.4.0
BuildPreReq:                    xdtv-devel >= 2.4.0
BuildRoot:                      %{_tmppath}/%{name}-%{version}-buildroot

%description
%{summary}

%prep
rm -rf $RPM_BUILD_ROOT
%setup -q -a 0

%build
%if %build_nopic
CFLAGS="$RPM_OPT_FLAGS" %configure --prefix=%{_prefix} --disable-pic
%else
CFLAGS="$RPM_OPT_FLAGS" %configure --prefix=%{_prefix}
%endif
make

%install
make ROOT="$RPM_BUILD_ROOT" prefix="$RPM_BUILD_ROOT"%{_prefix} install

# fr
install -d -m 755 %{buildroot}%{_mandir}/gl/man1/
install -m 644 man/xdtv.1 %{buildroot}%{_mandir}/gl/man1/
install -m 644 man/xdtv_cmd.1 %{buildroot}%{_mandir}/gl/man1/
install -m 644 man/xdtv_alevt.1 %{buildroot}%{_mandir}/gl/man1/
install -m 644 man/xdtv_alevt-cap.1 %{buildroot}%{_mandir}/gl/man1/
bzip2 %{buildroot}%{_mandir}/gl/man1/xdtv.1
bzip2 %{buildroot}%{_mandir}/gl/man1/xdtv_cmd.1
bzip2 %{buildroot}%{_mandir}/gl/man1/xdtv_alevt.1
bzip2 %{buildroot}%{_mandir}/gl/man1/xdtv_alevt-cap.1

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_prefix}/lib/xdtv/*.so
%{_mandir}/gl/man1/*
%{_datadir}/locale/gl/LC_MESSAGES/xdtv.mo
%{_sysconfdir}/xdtv/xdtv_wizard-gl.conf
%{_sysconfdir}/xdtv/xdtv_wizard-gl-UTF8.conf

%changelog
* Thu Jul 19 2005 Sebastien Corot <scorot@libertysurf.fr>
- compile for SuSE linux
* Sun Jan 30 2005 Sir Pingus <pingus_77@yahoo.fr> 1.0.0-1mdk
- 1.0.0 initial version

openSUSE Build Service is sponsored by