OSDN Git Service

Changed mirror
authorHe Chenlan <210hcl@gmail.com>
Wed, 3 Feb 2021 10:49:40 +0000 (18:49 +0800)
committerHe Chenlan <210hcl@gmail.com>
Wed, 3 Feb 2021 10:49:40 +0000 (18:49 +0800)
glibc.spec
nano.spec
sed.spec [deleted file]

index 15030c8..aaee038 100644 (file)
@@ -35,8 +35,8 @@ Group:          System/Libraries
 Version:        2.32
 Release:        1
 URL:            https://www.gnu.org/software/libc/
-Source:         https://mirrors.ustc.edu.cn/gnu/glibc/glibc-%{version}.tar.xz
-Source1:        https://mirrors.ustc.edu.cn/gnu/glibc/glibc-%{version}.tar.xz.sig
+Source:         https://mirror.sjtu.edu.cn/gnu/glibc/glibc-%{version}.tar.xz
+Source1:        https://mirror.sjtu.edu.cn/gnu/glibc/glibc-%{version}.tar.xz.sig
 
 %if %{with fast_build} || %{build_utils} && %{without build_all}
 %define build_profile 0
@@ -137,3 +137,5 @@ make %{?_smp_mflags} -C build -k check || {
 %else
 make %{?_smp_mflags} -C build check-abi
 %endif
+
+%install
index 195dcb7..9a6a831 100644 (file)
--- a/nano.spec
+++ b/nano.spec
@@ -1,10 +1,11 @@
-Summary: A small, friendly text editor
+Name:    nano
 Version: 5.5
 Release: 0
+Summary: A small, friendly text editor
 License: GPLv3+
 URL: https://nano-editor.org/
-Source0: https://mirrors.sjtug.sjtu.edu.cn/gnu/%{name}/%{name}-%{version}.tar.xz
-Source1: https://mirrors.sjtug.sjtu.edu.cn/gnu/%{name}/%{name}-%{version}.tar.xz.sig
+Source0: https://mirror.sjtu.edu.cn/gnu/%{name}/%{name}-%{version}.tar.xz
+Source1: https://mirror.sjtu.edu.cn/gnu/%{name}/%{name}-%{version}.tar.xz.sig
 Source2: nanorc
 
 %description
@@ -12,6 +13,8 @@ GNU nano was designed to be a free replacement for the Pico text editor, part
 of the Pine email suite from The University of Washington. It aimed to "emulate
 Pico as closely as is reasonable and then include extra functionality".
 
+%lang_package
+
 %prep
 %setup -q
 
@@ -29,13 +32,11 @@ sed -e 's/^#.*set speller.*$/set speller "hunspell"/' \
 mkdir -p %{buildroot}%{_sysconfdir}
 install -m 0644 ./nanorc %{buildroot}%{_sysconfdir}/nanorc
 
+# enable all extra syntax highlighting files by default
+mv %{buildroot}%{_datadir}/nano/extra/* %{buildroot}%{_datadir}/nano
 
-%files
-%defattr(-,root,root,-)
-%doc
+%find_lang %{name} --with-man --all-name
 
+%files
 
 %changelog
-* Tue Feb  2 2021 He Chenlan <210hcl@gmail.com> - 
-- Initial build.
-
diff --git a/sed.spec b/sed.spec
deleted file mode 100644 (file)
index 71b7be7..0000000
--- a/sed.spec
+++ /dev/null
@@ -1,46 +0,0 @@
-#
-# spec file for package sed
-#
-# Copyright (c) 2021 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:           sed
-Version:        
-Release:        0
-Summary:        
-License:        
-URL:            
-Source0:        
-BuildRequires:  
-Requires:       
-
-%description
-
-
-%prep
-%setup -q
-
-%build
-%configure
-make %{?_smp_mflags}
-
-%install
-%make_install
-
-%files
-%license add-license-file-here
-%doc add-docs-here
-
-%changelog