Accepting request 17548 from Education

Copy from Education/enca based on submit request 17548 from user sbrabec

OBS-URL: https://build.opensuse.org/request/show/17548
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/enca?expand=0&rev=1
This commit is contained in:
OBS User autobuild 2009-08-13 21:15:39 +00:00 committed by Git OBS Bridge
commit 4548576560
6 changed files with 199 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
enca-1.9.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:02acfef2b24a9c842612da49338138311f909f1cd33933520c07b8b26c410f4d
size 503547

28
enca.changes Normal file
View File

@ -0,0 +1,28 @@
-------------------------------------------------------------------
Tue Aug 11 19:14:16 CEST 2009 - sbrabec@suse.cz
- Split according to shared library packaging rules.
-------------------------------------------------------------------
Mon Sep 22 17:42:10 CEST 2008 - lars@linux-schulserver.de
- moved to Education base repository
-------------------------------------------------------------------
Mon Mar 17 19:16:45 CET 2008 - lars@linux-schulserver.de
- build for openSUSE-Education
- beautify specfile
- don't build static binaries
- Require glibc-devel for the devel package
- own %{_datadir}/gtk-doc/html to avoid gtk-doc dependency
-------------------------------------------------------------------
Sat Sep 1 2007 16:45:00 CET - michel.sylvan@gmail.com
- Strip debugging info into separate subpackage
-------------------------------------------------------------------
Wed Aug 29 2007 14:35:00 CET - michel.sylvan@gmail.com
- Initial package

144
enca.spec Normal file
View File

@ -0,0 +1,144 @@
#
# spec file for package enca (Version 1.9)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: enca
Summary: Detects encoding of text files
Group: Productivity/Other
Version: 1.9
Release: 1
License: GPL
Url: http://web.archive.org/web/20071013082301/http://trific.ath.cx/software/enca/
Source: %{name}-%{version}.tar.bz2
BuildRequires: recode-devel
Requires: sed
%if 0%{?suse_version} <= 1020
%define gtk_doc /opt/gnome/share/gtk-doc
%else
%define gtk_doc %{_datadir}/gtk-doc
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Enca is an Extremely Naive Charset Analyser. It detects character set and
encoding of text files and can also convert them to other encodings using
either a built-in converter or external libraries and tools like libiconv,
librecode, or cstocs.
Currently, it has support for Belarussian, Bulgarian, Croatian, Czech,
Estonian, Latvian, Lithuanian, Polish, Russian, Slovak, Slovene, Ukrainian,
Chinese, and some multibyte encodings (mostly variants of Unicode)
independent on the language.
This package also contains shared Enca library other programs can make use of.
Install Enca if you need to cope with text files of dubious origin
and unknown encoding and convert them to some reasonable encoding.
Authors:
--------
David Necas (Yeti) <yeti@physics.muni.cz>
Zuxy Meng <zuxy.meng@gmail.com>
%package -n libenca0
License: GPL
Group: System/Libraries
Summary: Header files and libraries for Enca development
%description -n libenca0
The enca-devel package contains the static libraries and header files
for writing programs using the Extremely Naive Charset Analyser library,
and its API documentation.
Install enca-devel if you are going to create applications using the Enca
library.
Authors:
--------
David Necas (Yeti) <yeti@physics.muni.cz>
Zuxy Meng <zuxy.meng@gmail.com>
%package devel
License: GPL
Requires: libenca0 = %{version}
Requires: glibc-devel
Group: Development/Libraries/C and C++
Summary: Header files and libraries for Enca development
%description devel
The enca-devel package contains the static libraries and header files
for writing programs using the Extremely Naive Charset Analyser library,
and its API documentation.
Install enca-devel if you are going to create applications using the Enca
library.
Authors:
--------
David Necas (Yeti) <yeti@physics.muni.cz>
Zuxy Meng <zuxy.meng@gmail.com>
%prep
%setup -q
%build
%configure --disable-static
# %make %{?jobs:-j%jobs}
make
%install
%makeinstall HTML_DIR=%{gtk_doc}/html
# the .la file is not needed without static libs
rm %{buildroot}/%{_libdir}/libenca.la
%post -n libenca0 -p /sbin/ldconfig
%postun -n libenca0 -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog ChangeLog.prelib FAQ NEWS README THANKS TODO
%{_bindir}/enc*
%{_libexecdir}/enca
%{_mandir}/man1/enc*.1*
%files -n libenca0
%defattr(-,root,root)
%{_libdir}/libenca.so.0*
%files devel
%defattr(-,root,root)
%doc README.devel
%{_datadir}/gtk-doc/html/*
# Own these repositories to not depend on gtk-doc while building:
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%{_includedir}/enca.h
%{_libdir}/libenca.so
%{_libdir}/pkgconfig/enca.pc
%changelog

0
ready Normal file
View File