|
Packit Service |
366393 |
# RPM package for Enca, an Extremely Naive Charset Analyser.
|
|
Packit Service |
366393 |
#
|
|
Packit Service |
366393 |
# This RPM package suports conditional builds. Components can be
|
|
Packit Service |
366393 |
# enabled/disabled in rpmbuild via --with/--without. Default is:
|
|
Packit Service |
366393 |
#
|
|
Packit Service |
366393 |
# rpmbuild -ba --without htmldocs --with static
|
|
Packit Service |
366393 |
#
|
|
Packit Service |
366393 |
# Check http://www.rpm.org/wiki/PackagerDocs/ConditionalBuilds for more info.
|
|
Packit Service |
366393 |
|
|
Packit Service |
366393 |
# add --with htmldocs option, i.e. disable generation of HTML documentation by
|
|
Packit Service |
366393 |
# default
|
|
Packit Service |
366393 |
%bcond_with htmldocs
|
|
Packit Service |
366393 |
|
|
Packit Service |
366393 |
# add --without static, i.e. enable generation of static libraries by
|
|
Packit Service |
366393 |
# default
|
|
Packit Service |
366393 |
%bcond_without static
|
|
Packit Service |
366393 |
|
|
Packit Service |
366393 |
Summary: Detect encoding of text files and convert to other encodings.
|
|
Packit Service |
366393 |
Name: @PACKAGE_TARNAME@
|
|
Packit Service |
366393 |
Version: @PACKAGE_VERSION@
|
|
Packit Service |
366393 |
Release: @RELEASE@%{?dist}
|
|
Packit Service |
366393 |
License: GPLv2
|
|
Packit Service |
366393 |
Group: Applications/Text
|
|
Packit Service |
366393 |
Source: http://dl.cihar.com/enca/@PACKAGE_TARNAME@-@PACKAGE_VERSION@.tar.gz
|
|
Packit Service |
366393 |
URL: https://github.com/nijel/@PACKAGE_TARNAME@
|
|
Packit Service |
366393 |
Prefix: %{_prefix}
|
|
Packit Service |
366393 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
Packit Service |
366393 |
|
|
Packit Service |
366393 |
%description
|
|
Packit Service |
366393 |
Enca is an Extremely Naive Charset Analyser.
|
|
Packit Service |
366393 |
|
|
Packit Service |
366393 |
It detects character set and encoding of text files and can also convert them
|
|
Packit Service |
366393 |
to other encodings using either a built-in converter or external libraries and
|
|
Packit Service |
366393 |
tools like GNU recode (librecode), UNIX98 iconv (libiconv), perl Unicode::Map
|
|
Packit Service |
366393 |
and cstocs.
|
|
Packit Service |
366393 |
|
|
Packit Service |
366393 |
Currently, it has support for Belarusian, Bulgarian, Croatian, Czech,
|
|
Packit Service |
366393 |
Estonian, Latvian, Lithuanian, Polish, Russian, Slovak, Slovene, Ukrainian,
|
|
Packit Service |
366393 |
Chinese, and some multibyte encodings (mostly variants of Unicode) independent
|
|
Packit Service |
366393 |
on the language.
|
|
Packit Service |
366393 |
|
|
Packit Service |
366393 |
This package contains enca, a command line frontend, as well as the shared
|
|
Packit Service |
366393 |
Enca libraries other programs can make use of.
|
|
Packit Service |
366393 |
|
|
Packit Service |
366393 |
Install enca if you need to cope with text files of dubious origin and unknown
|
|
Packit Service |
366393 |
encoding and convert them to some reasonable encoding.
|
|
Packit Service |
366393 |
|
|
Packit Service |
366393 |
%package devel
|
|
Packit Service |
366393 |
Summary: Header files and libraries for Enca development.
|
|
Packit Service |
366393 |
Group: Development/Libraries
|
|
Packit Service |
366393 |
Requires: %{name} = %{version}-%{release}
|
|
Packit Service |
366393 |
Requires: pkgconfig
|
|
Packit Service |
366393 |
|
|
Packit Service |
366393 |
%description devel
|
|
Packit Service |
366393 |
The %{name}-devel package contains the static libraries, header files and
|
|
Packit Service |
366393 |
documentation for writing programs using Enca, the Extremely Naive Charset
|
|
Packit Service |
366393 |
Analyser.
|
|
Packit Service |
366393 |
|
|
Packit Service |
366393 |
Install %{name}-devel if you are going to create applications using the Enca
|
|
Packit Service |
366393 |
library.
|
|
Packit Service |
366393 |
|
|
Packit Service |
366393 |
%prep
|
|
Packit Service |
366393 |
%setup -q
|
|
Packit Service |
366393 |
|
|
Packit Service |
366393 |
%build
|
|
Packit Service |
366393 |
%configure \
|
|
Packit Service |
366393 |
--disable-dependency-tracking \
|
|
Packit Service |
366393 |
--without-librecode \
|
|
Packit Service |
366393 |
%{?_without_htmldocs:--disable-gtk-doc} \
|
|
Packit Service |
366393 |
%{?_without_static:--disable-static}
|
|
Packit Service |
366393 |
|
|
Packit Service |
366393 |
%__make %{?_smp_mflags}
|
|
Packit Service |
366393 |
|
|
Packit Service |
366393 |
%check
|
|
Packit Service |
366393 |
#make check
|
|
Packit Service |
366393 |
|
|
Packit Service |
366393 |
%install
|
|
Packit Service |
366393 |
[ "%{buildroot}" != "/" ] && %__rm -rf %{buildroot}
|
|
Packit Service |
366393 |
%make_install
|
|
Packit Service |
366393 |
|
|
Packit Service |
366393 |
%__mv %{buildroot}/%{_datadir}/gtk-doc/ gtk-doc
|
|
Packit Service |
366393 |
|
|
Packit Service |
366393 |
%if %{without static}
|
|
Packit Service |
366393 |
%__rm -f %{buildroot}/%{_libdir}/libenca.a
|
|
Packit Service |
366393 |
%__rm -f %{buildroot}/%{_libdir}/libenca.la
|
|
Packit Service |
366393 |
%endif
|
|
Packit Service |
366393 |
|
|
Packit Service |
366393 |
%clean
|
|
Packit Service |
366393 |
[ "%{buildroot}" != "/" ] && %__rm -rf %{buildroot}
|
|
Packit Service |
366393 |
|
|
Packit Service |
366393 |
%files
|
|
Packit Service |
366393 |
%defattr(755,root,root)
|
|
Packit Service |
366393 |
%{_bindir}/enca
|
|
Packit Service |
366393 |
%{_bindir}/enconv
|
|
Packit Service |
366393 |
%{_libdir}/libenca.so*
|
|
Packit Service |
366393 |
|
|
Packit Service |
366393 |
# external converters
|
|
Packit Service |
366393 |
%{_libexecdir}/%{name}/extconv/*
|
|
Packit Service |
366393 |
%dir %{_libexecdir}/%{name}/extconv
|
|
Packit Service |
366393 |
%dir %{_libexecdir}/%{name}
|
|
Packit Service |
366393 |
|
|
Packit Service |
366393 |
# docs and man pages
|
|
Packit Service |
366393 |
%defattr(644,root,root)
|
|
Packit Service |
366393 |
%doc AUTHORS ChangeLog COPYING FAQ README THANKS TODO
|
|
Packit Service |
366393 |
%doc %{_mandir}/man1/enca.1*
|
|
Packit Service |
366393 |
%doc %{_mandir}/man1/enconv.1*
|
|
Packit Service |
366393 |
|
|
Packit Service |
366393 |
%files devel
|
|
Packit Service |
366393 |
%defattr(-,root,root)
|
|
Packit Service |
366393 |
%{_includedir}/enca.h
|
|
Packit Service |
366393 |
%{_libdir}/pkgconfig/enca.pc
|
|
Packit Service |
366393 |
|
|
Packit Service |
366393 |
# static libs
|
|
Packit Service |
366393 |
%if %{with static}
|
|
Packit Service |
366393 |
%{_libdir}/libenca.a
|
|
Packit Service |
366393 |
%{_libdir}/libenca.la
|
|
Packit Service |
366393 |
%endif
|
|
Packit Service |
366393 |
|
|
Packit Service |
366393 |
# README and HTML docs
|
|
Packit Service |
366393 |
%doc DEVELOP.md
|
|
Packit Service |
366393 |
%if %{with htmldocs}
|
|
Packit Service |
366393 |
%doc gtk-doc/html
|
|
Packit Service |
366393 |
%endif
|
|
Packit Service |
366393 |
|
|
Packit Service |
366393 |
%post -p /sbin/ldconfig
|
|
Packit Service |
366393 |
|
|
Packit Service |
366393 |
%postun -p /sbin/ldconfig
|
|
Packit Service |
366393 |
|
|
Packit Service |
366393 |
%changelog
|
|
Packit Service |
366393 |
* Sat Jan 10 2015 Victor Foitzik (vifo) <vifo@cpan.org>
|
|
Packit Service |
366393 |
- updated spec to match information on Github and
|
|
Packit Service |
366393 |
align with recent packaging guidelines from Fedora
|
|
Packit Service |
366393 |
- added conditional builds for HTML documentation and
|
|
Packit Service |
366393 |
static libraries
|
|
Packit Service |
366393 |
* Sun Dec 18 2005 David Necas (Yeti) <yeti@physics.muni.cz>
|
|
Packit Service |
366393 |
- fixed 0644 permissions on doc directory
|
|
Packit Service |
366393 |
* Mon May 17 2004 David Necas (Yeti) <yeti@physics.muni.cz>
|
|
Packit Service |
366393 |
- doubled percents in changelog
|
|
Packit Service |
366393 |
* Mon Dec 22 2003 David Necas (Yeti) <yeti@physics.muni.cz>
|
|
Packit Service |
366393 |
- moved wrappers to libexec
|
|
Packit Service |
366393 |
* Thu Nov 6 2003 David Necas (Yeti) <yeti@physics.muni.cz>
|
|
Packit Service |
366393 |
- added b-piconv
|
|
Packit Service |
366393 |
- fixed HTML doc install paths
|
|
Packit Service |
366393 |
* Tue Oct 14 2003 David Necas (Yeti) <yeti@physics.muni.cz>
|
|
Packit Service |
366393 |
- testing whether $RPM_BUILD_ROOT is not /
|
|
Packit Service |
366393 |
- updated for new HTML doc location
|
|
Packit Service |
366393 |
- changed make -> %%__make, rm -> %%__rm
|
|
Packit Service |
366393 |
* Sat Aug 2 2003 David Necas (Yeti) <yeti@physics.muni.cz>
|
|
Packit Service |
366393 |
- cleaning $RPM_BUILD_ROOT in %%install
|
|
Packit Service |
366393 |
* Sat Jun 28 2003 David Necas (Yeti) <yeti@physics.muni.cz>
|
|
Packit Service |
366393 |
- removed --disable-gtk-doc, no longer needed
|
|
Packit Service |
366393 |
* Fri Jun 20 2003 David Necas (Yeti) <yeti@physics.muni.cz>
|
|
Packit Service |
366393 |
- added enca.pc to devel package
|
|
Packit Service |
366393 |
* Sat Jun 14 2003 David Necas (Yeti) <yeti@physics.muni.cz>
|
|
Packit Service |
366393 |
- updated description
|
|
Packit Service |
366393 |
- added --disable-gtk-doc
|
|
Packit Service |
366393 |
* Mon Dec 23 2002 David Necas (Yeti) <yeti@physics.muni.cz>
|
|
Packit Service |
366393 |
- added libenca.so
|
|
Packit Service |
366393 |
* Fri Dec 20 2002 David Necas (Yeti) <yeti@physics.muni.cz>
|
|
Packit Service |
366393 |
- fixed URL and Source to trific.ath.cx
|
|
Packit Service |
366393 |
* Mon Oct 21 2002 David Necas (Yeti) <yeti@physics.muni.cz>
|
|
Packit Service |
366393 |
- added FAQ to docs
|
|
Packit Service |
366393 |
* Thu Oct 10 2002 David Necas (Yeti) <yeti@physics.muni.cz>
|
|
Packit Service |
366393 |
- removed twice-listed %%{docdir}/html
|
|
Packit Service |
366393 |
* Sat Sep 21 2002 David Necas (Yeti) <yeti@physics.muni.cz>
|
|
Packit Service |
366393 |
- added b-umap
|
|
Packit Service |
366393 |
* Sun Sep 15 2002 David Necas (Yeti) <yeti@physics.muni.cz>
|
|
Packit Service |
366393 |
- added enconv
|
|
Packit Service |
366393 |
* Thu Aug 29 2002 David Necas (Yeti) <yeti@physics.muni.cz>
|
|
Packit Service |
366393 |
- removed bzip2-devel buildprereq
|
|
Packit Service |
366393 |
* Sat Aug 24 2002 David Necas (Yeti) <yeti@physics.muni.cz>
|
|
Packit Service |
366393 |
- added postinstall and postuninstall scriptlets
|
|
Packit Service |
366393 |
* Wed Aug 21 2002 David Necas (Yeti) <yeti@physics.muni.cz>
|
|
Packit Service |
366393 |
- updated to enca-0.10.0-pre2
|
|
Packit Service |
366393 |
- added libenca
|
|
Packit Service |
366393 |
- split into enca and enca-devel
|
|
Packit Service |
366393 |
- removed cache
|
|
Packit Service |
366393 |
- fixed HTML_DIR
|
|
Packit Service |
366393 |
* Tue Jul 10 2001 David Necas (Yeti) <yeti@physics.muni.cz>
|
|
Packit Service |
366393 |
- changed rpm macros in Source and URL to autoconf macros to ease debian/
|
|
Packit Service |
366393 |
stuff generation
|
|
Packit Service |
366393 |
* Sun May 20 2001 David Necas (Yeti) <yeti@physics.muni.cz>
|
|
Packit Service |
366393 |
- added BuildPrereq: bzip2-devel
|
|
Packit Service |
366393 |
* Wed May 2 2001 David Necas (Yeti) <yeti@physics.muni.cz>
|
|
Packit Service |
366393 |
- changed group to standard (but much less appropriate) Applications/Text
|
|
Packit Service |
366393 |
- rpm macros are used instead of autoconf macros (after the first definition)
|
|
Packit Service |
366393 |
* Sun Mar 11 2001 David Necas (Yeti) <yeti@physics.muni.cz>
|
|
Packit Service |
366393 |
- added defattr, doc attributes
|
|
Packit Service |
366393 |
- uses global configure cache
|
|
Packit Service |
366393 |
- heavy use of predefined directories
|
|
Packit Service |
366393 |
- configure moved to build section as is usual
|
|
Packit Service |
366393 |
* Sun Feb 25 2001 David Necas (Yeti) <yeti@physics.muni.cz>
|
|
Packit Service |
366393 |
- updated to enca-0.9.0pre4 (including files and descriptions)
|
|
Packit Service |
366393 |
- added sed dependency
|
|
Packit Service |
366393 |
* Sun Oct 25 2000 David Necas (Yeti) <yeti@physics.muni.cz>
|
|
Packit Service |
366393 |
- updated to enca-0.7.5
|
|
Packit Service |
366393 |
* Sun Oct 11 2000 David Necas (Yeti) <yeti@physics.muni.cz>
|
|
Packit Service |
366393 |
- removed redundant Provides: enca
|
|
Packit Service |
366393 |
* Sun Oct 1 2000 David Necas (Yeti) <yeti@physics.muni.cz>
|
|
Packit Service |
366393 |
- updated to enca-0.7.1
|
|
Packit Service |
366393 |
- man page forced to be intstalled to ${prefix}/share/man
|
|
Packit Service |
366393 |
* Tue Sep 26 2000 David Necas (Yeti) <yeti@physics.muni.cz>
|
|
Packit Service |
366393 |
- updated to enca-0.7.0
|
|
Packit Service |
366393 |
- spec autogenerated by configure
|
|
Packit Service |
366393 |
* Tue Sep 19 2000 David Necas (Yeti) <yeti@physics.muni.cz>
|
|
Packit Service |
366393 |
- fixed not installing bcstocs
|
|
Packit Service |
366393 |
* Wed Sep 13 2000 David Necas (Yeti) <yeti@physics.muni.cz>
|
|
Packit Service |
366393 |
- first packaged (0.6.2)
|