From 63586d370af7bbc40d97c57bda9046a59f6830a8ad3c97bb0c1ca172fd317e68 Mon Sep 17 00:00:00 2001 From: Kyrill Detinov Date: Thu, 18 Jul 2024 06:03:10 +0000 Subject: [PATCH] Add reproducible.patch to override build date (boo#1047218) OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/librcc?expand=0&rev=22 --- .gitattributes | 23 ++++++ .gitignore | 1 + baselibs.conf | 1 + librcc-0.2.13.tar.gz | 3 + librcc.changes | 162 +++++++++++++++++++++++++++++++++++++++++++ librcc.spec | 110 +++++++++++++++++++++++++++++ reproducible.patch | 33 +++++++++ 7 files changed, 333 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 baselibs.conf create mode 100644 librcc-0.2.13.tar.gz create mode 100644 librcc.changes create mode 100644 librcc.spec create mode 100644 reproducible.patch diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..d396cc4 --- /dev/null +++ b/baselibs.conf @@ -0,0 +1 @@ +librcc0 diff --git a/librcc-0.2.13.tar.gz b/librcc-0.2.13.tar.gz new file mode 100644 index 0000000..674382d --- /dev/null +++ b/librcc-0.2.13.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:112b2e6ea465e34bd28d34d39a9982da16a1cc2b016966123e12075b52833920 +size 190213 diff --git a/librcc.changes b/librcc.changes new file mode 100644 index 0000000..bd4e71a --- /dev/null +++ b/librcc.changes @@ -0,0 +1,162 @@ +------------------------------------------------------------------- +Wed Jul 17 14:01:38 UTC 2024 - Bernhard Wiedemann + +- Add reproducible.patch to override build date (boo#1047218) + +------------------------------------------------------------------- +Fri Dec 9 22:26:06 UTC 2022 - Dirk Müller + +- update to 0.2.13: + * switch to git hub + * use pkg-config for libxml support + * fix libxml2 initialization and cleanup + +------------------------------------------------------------------- +Wed Aug 9 13:57:32 UTC 2017 - pgajdos@suse.com + +- remove aspell support [bsc#1052956] + +------------------------------------------------------------------- +Sun Nov 15 09:27:42 UTC 2015 - jengelh@inai.de + +- Grammar corrections to description. + Utilize new URL for source tarball (old one yielded NXDOMAIN). + +------------------------------------------------------------------- +Fri Jan 17 14:40:54 UTC 2014 - lazy.kent@opensuse.org + +- Correct baselibs.conf. + +------------------------------------------------------------------- +Fri Jan 3 09:51:24 UTC 2014 - lazy.kent@opensuse.org + +- Split off rcc-runtime subpackage. + +------------------------------------------------------------------- +Sat Dec 7 11:21:43 UTC 2013 - lazy.kent@opensuse.org + +- Update to 0.2.12. + * Remove librcd and enca from pkgconfig requires. + * Use cs for Czech language (cz is wrong). + * Language autodetection: prefer english over the languages + without any non-parent word (english is global parent). + * Support LibGuess 1.1. + * Fix build system for compatibility with latest versions of + automake. + * Fix complaining in example. + * Multiple fixes of build system. + * Compatibility with older automake and fixes to release script. + * Unversion generated files. +- Drop "librcc-0.2.9-czech_config", "librcc-0.2.10-libguess", + "libguess.c-64bit-portability" patches (fixed upstream). +- Merge librcc0 and rcc-runtime packages because they depends on + each other. + +------------------------------------------------------------------- +Tue Oct 22 15:58:10 UTC 2013 - lazy.kent@opensuse.org + +- Drop librtranslate-devel from BuildRequires to shorten build + cycle. + +------------------------------------------------------------------- +Tue Jul 16 11:54:39 UTC 2013 - lazy.kent@opensuse.org + +- Fix Supplements tag placement. + +------------------------------------------------------------------- +Tue Jun 25 14:51:28 UTC 2013 - mvyskocil@suse.com + +- download source tarball again, the former one did not match + +------------------------------------------------------------------- +Mon Jun 24 20:55:48 UTC 2013 - i@marguerite.su + +- add dependency: libguess + * for CJK charsets detection, or unzip fails(bnc#821877) +- add patch: librcc-0.2.10-libguess.patch + * enable libguess +- add patch: libguess.c-64bit-portability.patch + * fix 64bit portability issue libguess.c:48 +- enable libtranslate +- fix rcc-runtime dependency for librcc0 + * rcc-runtime should be dependency for librcc0 + instead of librcc + * without rcc-runtime, there'll be no engines, + thus librcc0 is useless then + +------------------------------------------------------------------- +Thu Dec 20 21:09:11 UTC 2012 - lazy.kent@opensuse.org + +- Update to 0.2.10. + * Fixed bugs. +- Drop librcc-printf.diff, librcc-0.2.9-suse-lint.diff, + librcc-0.2.9-provide_prototype.patch (fixed upstream). +- Build against libdb (build requires db-devel). + +------------------------------------------------------------------- +Fri May 11 08:55:36 UTC 2012 - coolo@suse.com + +- rename base package to librcc to avoid package renames later + +------------------------------------------------------------------- +Fri Dec 16 11:26:39 UTC 2011 - lazy.kent@opensuse.org + +- Corrected License tag according to SPDX standard. +- Use full URL as a source. +- Removed unsupported SUSE version check. +- Spec clean up and formatting. + +------------------------------------------------------------------- +Mon Nov 21 15:27:44 UTC 2011 - jengelh@medozas.de + +- Remove redundant/unwanted tags/section (cf. specfile guidelines) +- Use %_smp_mflags for parallel building + +------------------------------------------------------------------- +Sun Nov 20 06:18:35 UTC 2011 - coolo@suse.com + +- add libtool as buildrequire to avoid implicit dependency + +------------------------------------------------------------------- +Tue Aug 23 14:34:00 CEST 2011 - pth@suse.de + +- Use packageand to pull in librcc0 if aspell and unzip are + installed (bnc#710609). + +------------------------------------------------------------------- +Mon Jun 7 12:04:31 UTC 2010 - lazy.kent.suse@gmail.com + +- corrected rccFree patch + +------------------------------------------------------------------- +Wed May 26 10:59:41 UTC 2010 - pth@suse.de + +- Fixx rccFree definition and all its callers. + +------------------------------------------------------------------- +Fri Apr 2 19:36:54 UTC 2010 - lazy.kent.suse@gmail.com + +- add COPYING + +------------------------------------------------------------------- +Sun Mar 14 19:30:24 UTC 2010 - lazy.kent.suse@gmail.com + +- fix Czech locale code in config file + +------------------------------------------------------------------- +Thu Mar 11 18:57:30 UTC 2010 - lazy.kent.suse@gmail.com + +- split off runtime package +- remove rpmlint warnings + +------------------------------------------------------------------- +Mon Mar 8 18:46:02 UTC 2010 - lazy.kent.suse@gmail.com + +- spec-file reworked +- don't build GTK UI + +------------------------------------------------------------------- +Sat Feb 13 00:00:00 MSK 2010 - csa@dside.dyndns.org + + New version + diff --git a/librcc.spec b/librcc.spec new file mode 100644 index 0000000..2ba5846 --- /dev/null +++ b/librcc.spec @@ -0,0 +1,110 @@ +# +# spec file for package librcc +# +# Copyright (c) 2023 SUSE LLC +# +# 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 https://bugs.opensuse.org/ +# + + +%define major 0 +Name: librcc +Version: 0.2.13 +Release: 0 +Summary: Russian Character Set Conversion Library +License: LGPL-2.1-or-later +Group: Development/Libraries/C and C++ +URL: https://rusxmms.sourceforge.net +Source: https://github.com/RusXMMS/librcc/archive/refs/tags/librcc-%{version}.tar.gz +Source1: baselibs.conf +Patch0: https://github.com/RusXMMS/librcc/pull/5.patch#/reproducible.patch +BuildRequires: aspell-devel +BuildRequires: automake +BuildRequires: db-devel +BuildRequires: gcc-c++ +BuildRequires: libtool +BuildRequires: pkgconfig +BuildRequires: pkgconfig(enca) +BuildRequires: pkgconfig(libguess) +BuildRequires: pkgconfig(librcd) +BuildRequires: pkgconfig(libxml-2.0) + +%description +Provides the possibility to automatically convert considered +encodings to and from UTF-8. A lot of languages are supported, not +just the Russian one. The library is part of the rusxmms patch. + +%package -n %{name}%{major} +Summary: Russian Character Set Conversion Library +Group: System/Libraries +Requires: rcc-runtime +Supplements: (unzip and aspell) + +%description -n %{name}%{major} +Provides the possibility to automatically convert considered +encodings to and from UTF-8. A lot of languages are supported, not +just the Russian one. The library is part of the rusxmms patch. + +%package devel +Summary: Development files for librcc, a charset conversion library +Group: Development/Libraries/C and C++ +Requires: %{name}%{major} = %{version} + +%description devel +This subpackage contains libraries and header files for developing +applications that want to make use of librcc. + +%package -n rcc-runtime +Summary: LibRCC Runtime Environment +Group: System/Libraries + +%description -n rcc-runtime +Runtime environment for the LibRCC package. + +%prep +%autosetup -p1 -n librcc-librcc-%{version} + +%build +./autogen.sh +%configure \ + --disable-static \ + --enable-force-system-iconv +%make_build + +%install +%make_install +install -Dm 0644 examples/rcc.xml %{buildroot}%{_sysconfdir}/rcc.xml +rm -f %{buildroot}%{_libdir}/{*.la,rcc/engines/*.la} +rm -rf %{_builddir}/%{name}-%{version}/examples/{.deps,Makefile,*~} + +%post -n %{name}%{major} -p /sbin/ldconfig +%postun -n %{name}%{major} -p /sbin/ldconfig + +%files -n %{name}%{major} +%license COPYING +%{_libdir}/librcc.so.* +%{_libdir}/librccui.so.* + +%files devel +%license COPYING +%doc AUTHORS ChangeLog NEWS README docs examples +%{_includedir}/* +%{_libdir}/lib*.so +%{_libdir}/pkgconfig/%{name}.pc + +%files -n rcc-runtime +%license COPYING +%doc AUTHORS ChangeLog NEWS README +%{_libdir}/rcc/ +%config(noreplace) %{_sysconfdir}/rcc.xml + +%changelog diff --git a/reproducible.patch b/reproducible.patch new file mode 100644 index 0000000..2a178a9 --- /dev/null +++ b/reproducible.patch @@ -0,0 +1,33 @@ +From 7278124f0f3f7b894f7649d0cdb433c5a6f6f54a Mon Sep 17 00:00:00 2001 +From: "Bernhard M. Wiedemann" +Date: Fri, 20 Jan 2023 11:42:14 +0100 +Subject: [PATCH] Allow to override build date with SOURCE_DATE_EPOCH + +in order to make builds reproducible. +See https://reproducible-builds.org/ for why this is good +and https://reproducible-builds.org/specs/source-date-epoch/ +for the definition of this variable. +This date call works with various implementations of date. + +Also use UTC to be independent of timezone. + +This patch was done while working on reproducible builds for openSUSE. +--- + configure.ac | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 9248faa..451a1c9 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -26,7 +26,9 @@ AC_SUBST(LIBRCC_VERSION_INFO) + LIBRCC_CVS=`cat VERSION | sed -e s/.*CVS.*/CVS/` + if test "x$LIBRCC_CVS" = "xCVS"; then + LIBRCC_CVS=1 +-LIBRCC_CVS_DATE=`date +%y%m%d.%H` ++DATE_FMT="+%y%m%d.%H" ++SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH:-$(date +%s)}" ++LIBRCC_CVS_DATE=$(date -u -d "@$SOURCE_DATE_EPOCH" "$DATE_FMT" 2>/dev/null || date -u -r "$SOURCE_DATE_EPOCH" "$DATE_FMT" 2>/dev/null || date -u "$DATE_FMT") + else + LIBRCC_CVS=0 + LIBRCC_CVS_DATE=0