- use https for urls

- spec-cleaner run 

- use https for urls

OBS-URL: https://build.opensuse.org/package/show/Base:System/gettext-runtime?expand=0&rev=173
This commit is contained in:
Dirk Mueller 2021-01-22 22:07:21 +00:00 committed by Git OBS Bridge
parent 8385a86ecf
commit 314450d13d
4 changed files with 49 additions and 45 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jan 22 22:06:46 UTC 2021 - Dirk Müller <dmueller@suse.com>
- use https for urls
- spec-cleaner run
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jul 28 10:33:41 UTC 2020 - Christian Vögl <christian.voegl@suse.com> Tue Jul 28 10:33:41 UTC 2020 - Christian Vögl <christian.voegl@suse.com>

View File

@ -16,7 +16,26 @@
# #
%if 0%{?fedora_version} || 0%{?centos_version} <= 600 || 0%{?scilin_version} <= 600 || 0%{?rhel_version} <= 600
%global debug_package %{nil}
%endif
Name: gettext-csharp Name: gettext-csharp
Version: 0.21
Release: 0
Summary: Native Language Support (NLS) for C#
License: LGPL-2.1-or-later
Group: Development/Tools/Other
URL: https://www.gnu.org/software/gettext/
Source0: https://ftp.gnu.org/gnu/gettext/gettext-%{version}.tar.xz
Source1: https://ftp.gnu.org/gnu/gettext/gettext-%{version}.tar.xz.sig
Source2: suse-start-po-mode.el
Source3: gettext-linkdupes.sh
Source4: gettext-rpmlintrc
Source5: %{name}.keyring
Patch0: gettext-0.12.1-sigfpe.patch
Patch2: gettext-0.12.1-gettextize.patch
Patch4: gettext-po-mode.diff
Patch5: gettext-initialize_vars.patch
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: glib2-devel BuildRequires: glib2-devel
@ -27,27 +46,6 @@ BuildRequires: mono-devel
BuildRequires: perl-libintl-perl BuildRequires: perl-libintl-perl
BuildRequires: tcl BuildRequires: tcl
Requires: mono Requires: mono
URL: http://www.gnu.org/software/gettext/
Version: 0.21
Release: 0
Summary: Native Language Support (NLS) for C#
License: LGPL-2.1-or-later
Group: Development/Tools/Other
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: http://ftp.gnu.org/gnu/gettext/gettext-%{version}.tar.xz
Source1: gettext-rpmlintrc
Source2: suse-start-po-mode.el
Source3: gettext-linkdupes.sh
Source4: http://ftp.gnu.org/gnu/gettext/gettext-%{version}.tar.xz.sig
Source5: %name.keyring
Patch: gettext-0.12.1-sigfpe.patch
Patch2: gettext-0.12.1-gettextize.patch
Patch4: gettext-po-mode.diff
Patch5: gettext-initialize_vars.patch
%if 0%{?fedora_version} || 0%{?centos_version} <= 600 || 0%{?scilin_version} <= 600 || 0%{?rhel_version} <= 600
%global debug_package %{nil}
%endif
%description %description
Mono with its 'resgen' program uses a design that Microsoft created and Mono with its 'resgen' program uses a design that Microsoft created and
@ -70,10 +68,9 @@ The included GNU.Gettext.dll gives the user this freedom back and the
also included msgfmt.net.exe and msgunfmt.net.exe handle PO files more also included msgfmt.net.exe and msgunfmt.net.exe handle PO files more
reliably than 'resgen'. reliably than 'resgen'.
%prep %prep
%setup -q -n gettext-%{version} %setup -q -n gettext-%{version}
%patch %patch0
%patch2 %patch2
%patch4 %patch4
%patch5 %patch5
@ -85,11 +82,11 @@ export CXXFLAGS="%{optflags} -pipe -W -Wall -Dgcc_is_lint"
#autoreconf -fiv #autoreconf -fiv
#sh autogen.sh #sh autogen.sh
%configure --enable-shared --enable-csharp %configure --enable-shared --enable-csharp
make %{?_smp_mflags} GMSGFMT=../src/msgfmt V=1 %make_build GMSGFMT=../src/msgfmt
%install %install
export LC_CTYPE=ISO-8859-15 export LC_CTYPE=ISO-8859-15
%makeinstall %make_install
mkdir examples mkdir examples
mv %{buildroot}/%{_datadir}/doc/gettext/examples/*csharp* examples mv %{buildroot}/%{_datadir}/doc/gettext/examples/*csharp* examples
mv %{buildroot}/%{_datadir}/doc/gettext/csharpdoc csharpdoc mv %{buildroot}/%{_datadir}/doc/gettext/csharpdoc csharpdoc
@ -109,24 +106,20 @@ mkdir -p %{buildroot}/%{_defaultdocdir}/%{name}
mv examples %{buildroot}/%{_defaultdocdir}/%{name} mv examples %{buildroot}/%{_defaultdocdir}/%{name}
mv csharpdoc %{buildroot}/%{_defaultdocdir}/%{name} mv csharpdoc %{buildroot}/%{_defaultdocdir}/%{name}
# exclude files packaged via other spec files # exclude files packaged via other spec files
rm -Rf %{buildroot}/%_bindir rm -Rf %{buildroot}/%{_bindir}
rm -f %{buildroot}/%_libdir/lib* rm -f %{buildroot}/%{_libdir}/lib*
rm -f %{buildroot}/%_libdir/gettext/hostname rm -f %{buildroot}/%{_libdir}/gettext/hostname
rm -f %{buildroot}/%_libdir/gettext/project-id rm -f %{buildroot}/%{_libdir}/gettext/project-id
rm -f %{buildroot}/%_libdir/gettext/urlget rm -f %{buildroot}/%{_libdir}/gettext/urlget
rm -f %{buildroot}/%_libdir/gettext/user-email rm -f %{buildroot}/%{_libdir}/gettext/user-email
rm -f %{buildroot}/%_libdir/gettext/cldr-plurals rm -f %{buildroot}/%{_libdir}/gettext/cldr-plurals
rm -Rf %{buildroot}/%_includedir rm -Rf %{buildroot}/%{_includedir}
rm -f %{buildroot}/%_libdir/preloadable_libintl.so rm -f %{buildroot}/%{_libdir}/preloadable_libintl.so
%clean
rm -rf %{buildroot}
%files %files
%defattr(-,root,root)
%doc %{_defaultdocdir}/%{name} %doc %{_defaultdocdir}/%{name}
%_libdir/GNU.Gettext.dll %{_libdir}/GNU.Gettext.dll
%_libdir/gettext/msgfmt.net.exe %{_libdir}/gettext/msgfmt.net.exe
%_libdir/gettext/msgunfmt.net.exe %{_libdir}/gettext/msgunfmt.net.exe
%changelog %changelog

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jan 22 22:06:58 UTC 2021 - Dirk Müller <dmueller@suse.com>
- use https for urls
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jul 28 10:20:58 UTC 2020 - Christian Vögl <christian.voegl@suse.com> Tue Jul 28 10:20:58 UTC 2020 - Christian Vögl <christian.voegl@suse.com>

View File

@ -22,12 +22,12 @@ Release: 0
Summary: Java Support for Native Language Support (NLS) Summary: Java Support for Native Language Support (NLS)
License: LGPL-2.1-or-later License: LGPL-2.1-or-later
Group: Development/Tools/Other Group: Development/Tools/Other
URL: http://www.gnu.org/software/gettext/ URL: https://www.gnu.org/software/gettext/
Source0: http://ftp.gnu.org/gnu/gettext/gettext-%{version}.tar.xz Source0: https://ftp.gnu.org/gnu/gettext/gettext-%{version}.tar.xz
Source1: gettext-rpmlintrc Source1: https://ftp.gnu.org/gnu/gettext/gettext-%{version}.tar.xz.sig
Source2: suse-start-po-mode.el Source2: suse-start-po-mode.el
Source3: gettext-linkdupes.sh Source3: gettext-linkdupes.sh
Source4: http://ftp.gnu.org/gnu/gettext/gettext-%{version}.tar.xz.sig Source4: gettext-rpmlintrc
Source5: %{name}.keyring Source5: %{name}.keyring
Patch0: gettext-0.12.1-sigfpe.patch Patch0: gettext-0.12.1-sigfpe.patch
Patch2: gettext-0.12.1-gettextize.patch Patch2: gettext-0.12.1-gettextize.patch