From 219083c968a32323949f022815eb551bfdb049e64f90e8f97ee1d9c2e8df06bd Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 2 Nov 2024 22:13:42 +0000 Subject: [PATCH 1/2] [info=d74c1ec2860d92b1422ce6aa32f2ac13edd31444f3f8705d7826c33b16b30276] OBS-URL: https://build.opensuse.org/package/show/editors/libtranscript?expand=0&rev=15 --- .gitattributes | 23 +++++++++ .gitignore | 1 + _scmsync.obsinfo | 4 ++ build.specials.obscpio | 3 ++ libtranscript-0.3.3.tar.bz2 | 3 ++ libtranscript-0.3.3.tar.bz2.sig | Bin 0 -> 112 bytes libtranscript.changes | 43 +++++++++++++++ libtranscript.keyring | 38 ++++++++++++++ libtranscript.spec | 89 ++++++++++++++++++++++++++++++++ 9 files changed, 204 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _scmsync.obsinfo create mode 100644 build.specials.obscpio create mode 100644 libtranscript-0.3.3.tar.bz2 create mode 100644 libtranscript-0.3.3.tar.bz2.sig create mode 100644 libtranscript.changes create mode 100644 libtranscript.keyring create mode 100644 libtranscript.spec 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/_scmsync.obsinfo b/_scmsync.obsinfo new file mode 100644 index 0000000..0f8454a --- /dev/null +++ b/_scmsync.obsinfo @@ -0,0 +1,4 @@ +mtime: 1576927943 +commit: d74c1ec2860d92b1422ce6aa32f2ac13edd31444f3f8705d7826c33b16b30276 +url: https://src.opensuse.org/jengelh/libtranscript +revision: master diff --git a/build.specials.obscpio b/build.specials.obscpio new file mode 100644 index 0000000..d538654 --- /dev/null +++ b/build.specials.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:394f590aa6e3c1138688709e7fe522669b055233dce5257cd2340e9e1ec022e3 +size 256 diff --git a/libtranscript-0.3.3.tar.bz2 b/libtranscript-0.3.3.tar.bz2 new file mode 100644 index 0000000..d37aaf5 --- /dev/null +++ b/libtranscript-0.3.3.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1f8c19f257da5d6fad0ed9a7e5bd2442819e910a19907c38e115116a3955f5fa +size 1960626 diff --git a/libtranscript-0.3.3.tar.bz2.sig b/libtranscript-0.3.3.tar.bz2.sig new file mode 100644 index 0000000000000000000000000000000000000000000000000000000000000000..0ba11597948b7e1cd6bf9cfb479b7d00d6ed51c12a9306ab88748535c2a7ff93 GIT binary patch literal 112 zcmV-$0FVEOZUg`k2mlrZ0$OdJIS(9XaA!bgXklz?WpgfWYyb)g5LzPlv|l;iQHl@% z|6SU)!Kfo}UEeZ#odAIc`EOvkQvHsJ7ZDvu<}^pT2>|~~W+RVPShfMlIGAUOE!Mmj Si59A`y7%U8_?t_yH<-V=&n?&h literal 0 HcmV?d00001 diff --git a/libtranscript.changes b/libtranscript.changes new file mode 100644 index 0000000..0a3fc19 --- /dev/null +++ b/libtranscript.changes @@ -0,0 +1,43 @@ +------------------------------------------------------------------- +Fri Dec 20 00:02:08 UTC 2019 - Jan Engelhardt + +- Add keyrings and HTTPS URLs. + +------------------------------------------------------------------- +Mon Jan 7 15:45:51 UTC 2019 - Jan Engelhardt + +- Update to new upstream release 0.3.3 + * No functional changes. The pre-generated Doxygen documentation + was removed from the source tarball. + +------------------------------------------------------------------- +Sun Mar 29 20:41:40 UTC 2015 - jengelh@inai.de + +- specfile metadata cleanup + +------------------------------------------------------------------- +Thu Feb 19 19:18:38 UTC 2015 - p.drouand@gmail.com + +- Update to version 0.3.2 + * Re-release of version 0.3.1 to update the configure script. + +------------------------------------------------------------------- +Mon Jul 21 19:11:36 UTC 2014 - jengelh@inai.de + +- Update to new upstream release 0.3.1 +* This release removes support for Windows-21866 character set. + This should be the same as the KOI8-U character set (which is + supported). Furthermore, this release properly handles unpaired + high surrogates in a UTF-8 stream and uses a script to install + the required symbolic links, instead of the linkltc program. + +------------------------------------------------------------------- +Fri Feb 7 22:11:49 UTC 2014 - dimstar@opensuse.org + +- Declare CC=gcc to ensure we build with gcc; seems make falls back + to 'c99' otherwise (instead of requiring posix_cc). + +------------------------------------------------------------------- +Mon Jun 10 13:11:26 UTC 2013 - jengelh@inai.de + +- Initial package (version 0.3.0) for build.opensuse.org diff --git a/libtranscript.keyring b/libtranscript.keyring new file mode 100644 index 0000000..757b4fa --- /dev/null +++ b/libtranscript.keyring @@ -0,0 +1,38 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQMuBFEIGNsRCACrnPIiiWApLChXo0Q/pJ3/Ngd22fHLHDS4ga4JIvyLU1OZyNrA +XccCRZ7R+DMtzEI9QqmDQeS5WHLJ0ehBQaccw9J8lQ5Of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DAgYVCAIJCgsEFgIDAQIeAQIXgAAKCRBaIve0XzneUWN6AP9WBeaV +Dl14WzDrpES5IHLfThdIcumipA9dkKrRWeX/tgD9HIQNTL8M8QUdram5PA1+QYz5 +m/6HHO3zHIlCc5Fqeq25Ag0EUQgY2xAIALXazw2Lvh3ynJjp6/idwt9Q9H67tcET +0czA8gGJDbu3eeBaNWalpLeETm4fVef6CQ8WRkTiqtFCytkBEtFYmr/Iy7rswKq8 +pdW4AF0mhTdqmIXvAlThUElb9LBgbZra2WDZNTwLBB3yP3vPu7fkCcgfsxyDKrf5 +HlP/hyG1TwRoix4RoY/D9vsC4CvVBg0Z7EA4Hhs3+ZdqB538N7+xMr9OPgwoL/2W +tXgogKmarXUcwsLd3b6ztOKQtuxZh7dx+14PCWLSZdWhWWVRTwHB6KA5z+SD/Y9D +LopixunnpoIazbZJhNSkfL/WZNMQTvkxHDYPLxhWAXy182TBMlDk5FsAAwUIAIbO +4oFnQxCFP3A9v8608pmefnXpJPYksPqK9KIAl7HfCQ9s+vlFpWNYud7POAgQ9A66 +WECWaO/WvHfVH+eUDEAvS7qEkowRpnlPgzVUKSty5T3EH46ApoMein+MJibUHgfR +feeILUMkEuJdlSiXzihuPcfDRVAPSBNfrc9Gc4qjwDHXT5MtvYAWcthoaCtG0mdf +E68zGzrc5JpfZfQhu82aaKrDHkrENXJcdTE5YVb/4I9ZVuUXKttIYIVB7AIM6EMy +gEs6UYuvB4oR9KS/LwC2REpRxEWeNrxSWQ7TePVUDSaiyMTrDSBHHnf4cwD0xXLs +AYCRICmgxlSr+JvLYkGIYQQYEQgACQUCUQgY2wIbDAAKCRBaIve0XzneUZbpAP99 +a6+840t31YBBVQKiIPziSufMI6BOsfzp8q6XSBCJIwD/X2szcgVGOrG6DXYp+yLg +gxlPsZP8Ibkb/kclOvRwNzo= +=yATM +-----END PGP PUBLIC KEY BLOCK----- diff --git a/libtranscript.spec b/libtranscript.spec new file mode 100644 index 0000000..c3e5864 --- /dev/null +++ b/libtranscript.spec @@ -0,0 +1,89 @@ +# +# spec file for package libtranscript +# +# Copyright (c) 2019 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/ +# + + +Name: libtranscript +%define lname libtranscript1 +Version: 0.3.3 +Release: 0 +Summary: A character set conversion library +License: GPL-3.0-only +Group: Development/Libraries/C and C++ +URL: https://os.ghalkes.nl/libtranscript.html + +#Git-Clone: git://github.com/gphalkes/transcript +Source: https://os.ghalkes.nl/dist/%name-%version.tar.bz2 +Source2: https://os.ghalkes.nl/dist/%name-%version.tar.bz2.sig +Source3: %name.keyring +BuildRequires: fdupes +BuildRequires: gettext-tools +BuildRequires: libtool +BuildRequires: pkg-config + +%description +libtranscript is a character set conversion library which allows +great control over the conversion. + +%package -n %lname +Summary: A character conversion library +Group: System/Libraries + +%description -n %lname +libtranscript is a character set conversion library which allows +great control over the conversion. + +%package devel +Summary: Development files for libtranscript, a character conversion library +Group: Development/Libraries/C and C++ +Requires: %lname = %version + +%description devel +libtranscript is a character set conversion library which allows +great control over the conversion. + +This subpackage contains libraries and header files for developing +applications that want to make use of libtranscript. + +%prep +%autosetup -p1 + +%build +export CC=gcc +%configure --docdir="%_docdir/%name" +make %{?_smp_mflags} + +%install +%make_install +rm -f "%buildroot/%_libdir"/*.la +%fdupes %buildroot/%_prefix + +%post -p /sbin/ldconfig -n %lname +%postun -p /sbin/ldconfig -n %lname + +%files -n %lname +%_libdir/libtranscript.so.1* +%_libdir/transcript1/ +%license COPYING + +%files devel +%_includedir/transcript/ +%_libdir/libtranscript.so +%_libdir/pkgconfig/libtranscript.pc +%_docdir/%name/ +%exclude %_docdir/%name/COPYING + +%changelog From d812cfd1fd472a6e8aca54d07f6f8bfdf3357dbb8e5e2bb972acbef8e9515e69 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Sat, 2 Nov 2024 22:23:12 +0000 Subject: [PATCH 2/2] [info=e55daad0bbd8a60ae582ca3deb4434eb7cad8fd845b2a126495beabd11d58ded] OBS-URL: https://build.opensuse.org/package/show/editors/libtranscript?expand=0&rev=16 --- ...uild-fix-configure-failure-in-gcc-14.patch | 48 +++++++++++++++++++ _scmsync.obsinfo | 4 +- build.specials.obscpio | 2 +- libtranscript.changes | 5 ++ libtranscript.spec | 9 ++-- 5 files changed, 60 insertions(+), 8 deletions(-) create mode 100644 0001-build-fix-configure-failure-in-gcc-14.patch diff --git a/0001-build-fix-configure-failure-in-gcc-14.patch b/0001-build-fix-configure-failure-in-gcc-14.patch new file mode 100644 index 0000000..bdb544c --- /dev/null +++ b/0001-build-fix-configure-failure-in-gcc-14.patch @@ -0,0 +1,48 @@ +From de2a4b8974bf05c8dbf55a9cd20c45834164d5bf Mon Sep 17 00:00:00 2001 +From: Jan Engelhardt +Date: Sat, 2 Nov 2024 23:15:00 +0100 +Subject: [PATCH] build: fix configure failure in gcc-14 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit +References: https://github.com/gphalkes/transcript/pull/1 + +``` +$ ./configure +… +Checking for opendir/readdir/closedir/dirent.h/stdint.h... no +!! Some required functionality is not available. See config.log for details. +… +$ cat config.log +.config.c:12:9: error: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration] +// once the right prototype is in view: +.config.c:13:27: error: passing argument 1 of ‘puts’ makes pointer from integer without a cast [-Wint-conversion] +``` +--- + dist/config.pkg | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/dist/config.pkg b/dist/config.pkg +index e2f1d64..0ecd653 100644 +--- a/config.pkg ++++ b/config.pkg +@@ -66,6 +66,7 @@ config() { + #include + #include + #include ++#include + + int main(int argc, char *argv[]) { + DIR *dir; +@@ -74,7 +75,7 @@ int main(int argc, char *argv[]) { + + dir = opendir("."); + entry = readdir(dir); +- puts(entry->d_name[0]); ++ puts(entry->d_name); + closedir(dir); + return 0; + } +-- +2.47.0 + diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo index 0f8454a..3794e32 100644 --- a/_scmsync.obsinfo +++ b/_scmsync.obsinfo @@ -1,4 +1,4 @@ -mtime: 1576927943 -commit: d74c1ec2860d92b1422ce6aa32f2ac13edd31444f3f8705d7826c33b16b30276 +mtime: 1730586175 +commit: e55daad0bbd8a60ae582ca3deb4434eb7cad8fd845b2a126495beabd11d58ded url: https://src.opensuse.org/jengelh/libtranscript revision: master diff --git a/build.specials.obscpio b/build.specials.obscpio index d538654..bf2355a 100644 --- a/build.specials.obscpio +++ b/build.specials.obscpio @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:394f590aa6e3c1138688709e7fe522669b055233dce5257cd2340e9e1ec022e3 +oid sha256:36e3637c909b39a11c3cae4fa9e6ed4a1540e6df6809ca6cc002e419829061f4 size 256 diff --git a/libtranscript.changes b/libtranscript.changes index 0a3fc19..fd9b4f8 100644 --- a/libtranscript.changes +++ b/libtranscript.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Nov 2 22:22:48 UTC 2024 - Jan Engelhardt + +- Add 0001-build-fix-configure-failure-in-gcc-14.patch + ------------------------------------------------------------------- Fri Dec 20 00:02:08 UTC 2019 - Jan Engelhardt diff --git a/libtranscript.spec b/libtranscript.spec index c3e5864..916e66a 100644 --- a/libtranscript.spec +++ b/libtranscript.spec @@ -24,11 +24,11 @@ Summary: A character set conversion library License: GPL-3.0-only Group: Development/Libraries/C and C++ URL: https://os.ghalkes.nl/libtranscript.html - -#Git-Clone: git://github.com/gphalkes/transcript +#Git-Clone: https://github.com/gphalkes/transcript Source: https://os.ghalkes.nl/dist/%name-%version.tar.bz2 Source2: https://os.ghalkes.nl/dist/%name-%version.tar.bz2.sig Source3: %name.keyring +Patch1: 0001-build-fix-configure-failure-in-gcc-14.patch BuildRequires: fdupes BuildRequires: gettext-tools BuildRequires: libtool @@ -64,15 +64,14 @@ applications that want to make use of libtranscript. %build export CC=gcc %configure --docdir="%_docdir/%name" -make %{?_smp_mflags} +%make_build %install %make_install rm -f "%buildroot/%_libdir"/*.la %fdupes %buildroot/%_prefix -%post -p /sbin/ldconfig -n %lname -%postun -p /sbin/ldconfig -n %lname +%ldconfig_scriptlets -n %lname %files -n %lname %_libdir/libtranscript.so.1*