Browse Source

updated 7 packages

ImageMagick-6.9.12.1-1

cmake-3.19.6-1

double-conversion-3.1.5-5

emacs-27.1-1

inkscape-1.0.2-1

potrace-1.16-1

pstoedit-3.75-2

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@12555 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 3 years ago
parent
commit
768608d13c

+ 7 - 9
I/ImageMagick/ImageMagick-vl.spec

@@ -1,8 +1,8 @@
 # ImageMagick has adopted a new Version.Patchlevel version numbering system...
 # 6.2.9.7 is actually version 6.2.9, Patchlevel 0.
 
-%define VER 6.9.11
-%define Patchlevel 48
+%define VER 6.9.12
+%define Patchlevel 1
 
 Name: ImageMagick
 Summary: X application for displaying and manipulating images.
@@ -272,13 +272,8 @@ rm -rf $RPM_BUILD_ROOT%{_docdir}/ImageMagick-6
 rm -rf $RPM_BUILD_ROOT
 
 
-%post -p /sbin/ldconfig
-
-%post c++ -p /sbin/ldconfig
-
-%postun -p /sbin/ldconfig
-
-%postun c++ -p /sbin/ldconfig
+%ldconfig_scriptlets
+%ldconfig_scriptlets c++
 
 
 %files
@@ -346,6 +341,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Sat Feb 27 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.9.12.1-1
+- new upstream release.
+
 * Sat Dec 12 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 6.9.11.48-1
 - new upstream release.
 

+ 39 - 19
c/cmake/cmake-vl.spec

@@ -4,22 +4,22 @@
 # Set to bcond_with or use --without gui to disable qt4 gui build
 %bcond_with gui
 
-%global major_version 3
-%global minor_version 18
-
 Name: cmake
 Summary: Cross-platform make system
 Summary(ja): クロスプラットフォームな Make システム
-Version: 3.18.0
+Version: 3.19.6
 Release: 1%{?_dist_release}
-Group: Development/Tools
+Group: programming
+Vendor: Project Vine
+Distribution: Vine Linux
 
 License: BSD
-URL: http://www.cmake.org/
+URL: https://www.cmake.org/
 Source0: https://github.com/Kitware/CMake/releases/download/v%{version}/cmake-%{version}.tar.gz
 Source1: macros.cmake
-Vendor: Project Vine
-Distribution: Vine Linux
+Source3: %{name}.attr
+Source4: %{name}.prov
+Source5: %{name}.req
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 BuildRequires: curl-devel
@@ -38,6 +38,10 @@ BuildRequires: qt4-devel, desktop-file-utils
 %else
 %define qt_gui --no-qt-gui
 %endif
+Provides:      %{name}-filesystem%{?_isa} = %{version}-%{release}
+ 
+%global major_version %(echo %{version} | cut -d . -f 1)
+%global minor_version %(echo %{version} | cut -d . -f 2)
 
 %description
 CMake is used to control the software compilation process using simple 
@@ -47,9 +51,10 @@ environment of your choice. CMake is quite sophisticated: it is possible
 to support complex environments requiring system configuration, pre-processor 
 generation, code generation, and template instantiation.
 
+
 %package        gui
 Summary:        Qt GUI for %{name}
-Group:          Development/Tools
+Group:          programming
 Requires:       %{name} = %{version}-%{release}
 Requires(post): desktop-file-utils, shared-mime-info
 Requires(postun): desktop-file-utils, shared-mime-info
@@ -91,31 +96,39 @@ The %{name}-gui package contains the Qt based GUI for CMake.
 
 make VERBOSE=1 %{?_smp_mflags}
 
+
 %install
-rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot}
 
-find $RPM_BUILD_ROOT/%{_datadir}/%{name}/Modules -type f | xargs chmod -x
-rm -rf $RPM_BUILD_ROOT/usr/doc
+find %{buildroot}/%{_datadir}/%{name}/Modules -type f | xargs chmod -x
+rm -rf %{buildroot}/usr/doc
 
 # RPM macros
-install -p -m0644 -D %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.cmake
-sed -i -e "s|@@CMAKE_MAJOR_VERSION@@|%{major_version}|" $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.cmake
-touch -r %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.cmake
+install -p -m0644 -D %{SOURCE1} %{buildroot}%{_rpmmacrodir}/macros.cmake
+sed -i -e "s|@@CMAKE_MAJOR_VERSION@@|%{major_version}|" %{buildroot}%{_rpmmacrodir}/macros.cmake
+touch -r %{SOURCE1} %{buildroot}%{_rpmmacrodir}/macros.cmake
+
+# RPM auto provides
+install -p -m0644 -D %{SOURCE3} %{buildroot}%{_prefix}/lib/rpm/fileattrs/%{name}.attr
+install -p -m0755 -D %{SOURCE4} %{buildroot}%{_prefix}/lib/rpm/%{name}.prov
+install -p -m0755 -D %{SOURCE5} %{buildroot}%{_prefix}/lib/rpm/%{name}.req
 
 %if %{with gui}
 # Desktop file
 desktop-file-install --delete-original \
-  --dir=$RPM_BUILD_ROOT%{_datadir}/applications \
-  $RPM_BUILD_ROOT/%{_datadir}/applications/CMake.desktop
+  --dir=%{buildroot}%{_datadir}/applications \
+  %{buildroot}/%{_datadir}/applications/CMake.desktop
 %endif
 
 rm -rf doc
 mv -f %{buildroot}%{_docdir}/%{name} ./doc
 
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+
 %if %{with gui}
 %post gui
 update-desktop-database &> /dev/null || :
@@ -132,7 +145,10 @@ update-mime-database %{_datadir}/mime &> /dev/null || :
 %doc CMakeLogo.gif README.* doc
 %doc Help
 %license Copyright.txt Licenses/*
-%config(noreplace) %{_sysconfdir}/rpm/macros.cmake
+%config(noreplace) %{_rpmmacrodir}/macros.cmake
+%{_rpmconfigdir}/fileattrs/%{name}.attr
+%{_rpmconfigdir}/%{name}.prov
+%{_rpmconfigdir}/%{name}.req
 %{_bindir}/ccmake
 %{_bindir}/cmake
 %{_bindir}/cpack
@@ -156,6 +172,10 @@ update-mime-database %{_datadir}/mime &> /dev/null || :
 
 
 %changelog
+* Sat Feb 27 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.19.6-1
+- updated to 3.19.6.
+- updated macros.cmake.
+
 * Thu Jul 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.18.0-1
 - updated to 3.18.0.
 

+ 184 - 0
d/double-conversion/double-conversion-vl.spec

@@ -0,0 +1,184 @@
+%undefine __cmake_in_source_build
+%bcond_without static_libs # don't build static libraries
+
+Summary:        Library providing binary-decimal and decimal-binary routines for IEEE doubles
+Name:           double-conversion
+Version:        3.1.5
+Release:        5%{?_dist_release}
+Group:          system
+Vendor:         Project Vine
+Distribution:   Vine Linux
+
+License:        BSD
+Source0:        https://github.com/google/double-conversion/archive/v%{version}/%{name}-%{version}.tar.gz
+URL:            https://github.com/google/double-conversion
+BuildRequires:  gcc
+BuildRequires:  gcc-c++
+BuildRequires:  cmake
+
+%description
+Provides binary-decimal and decimal-binary routines for IEEE doubles.
+The library consists of efficient conversion routines that have been
+extracted from the V8 JavaScript engine. The code has been re-factored
+and improved so that it can be used more easily in other projects.
+
+
+%package devel
+Summary:    Library providing binary-decimal and decimal-binary routines for IEEE doubles
+Group:      programming
+Requires:   %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+Contains header files for developing applications that use the %{name}
+library.
+
+There is extensive documentation in src/double-conversion.h. Other
+examples can be found in test/cctest/test-conversions.cc.
+
+
+%package static
+Summary:    Library providing binary-decimal and decimal-binary routines for IEEE doubles
+Group:      programming
+Requires:   %{name}-devel%{?_isa} = %{version}-%{release}
+
+%description static
+Static %{name} library.
+
+
+%debug_package
+
+
+%prep
+%setup -q
+
+
+%build
+%global _vpath_builddir build-shared
+%cmake -DBUILD_TESTING=ON
+%cmake_build
+
+%if %{with static_libs}
+%global _vpath_builddir build-static
+CXXFLAGS="%{optflags} -fPIC" %cmake -DBUILD_SHARED_LIBS=NO
+%cmake_build
+%endif
+
+
+%install
+%if %{with static_libs}
+%global _vpath_builddir build-static
+%cmake_install
+%endif
+
+%global _vpath_builddir build-shared
+%cmake_install
+
+
+%if 0
+%check
+%ctest
+%endif
+
+
+%ldconfig_scriptlets
+
+
+%files
+%doc LICENSE README.md AUTHORS Changelog
+%{_libdir}/libdouble-conversion.so.3*
+
+%files devel
+%{_libdir}/libdouble-conversion.so
+%{_libdir}/cmake/%{name}
+%{_includedir}/%{name}
+
+%if %{with static_libs}
+%files static
+%{_libdir}/libdouble-conversion.a
+%endif
+
+
+%changelog
+* Sat Feb 27 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 3.1.5-5
+- initial build for Vine Linux.
+
+* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.5-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
+
+* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.5-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
+
+* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.5-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
+
+* Sun Sep 22 2019 Orion Poplawski <orion@nwra.com> - 3.1.5-1
+- Update to 3.1.5
+
+* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
+
+* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
+
+* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
+
+* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
+
+* Mon Sep 4 2017 Milan Bouchet-Valat <nalimilan@club.fr> - 3.0.0-1
+- New upstream release.
+
+* Sun Aug 06 2017 Björn Esser <besser82@fedoraproject.org> - 2.0.1-11
+- Rebuilt for AutoReq cmake-filesystem
+
+* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-10
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
+
+* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-9
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
+
+* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-8
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
+
+* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-7
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
+
+* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-6
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
+
+* Fri Mar 13 2015 Orion Poplawski <orion@cora.nwra.com> - 2.0.1-5
+- Use github source
+
+* Wed Mar 11 2015 Orion Poplawski <orion@cora.nwra.com> - 2.0.1-4
+- Build with cmake
+
+* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
+
+* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
+
+* Sat Feb 8 2014 Milan Bouchet-Valat <nalimilan@club.fr> - 2.0.1-1
+- New upstream version.
+- Drop no longer needed custom SConstruct file and use new upstream SONAME.
+
+* Tue Dec 17 2013 Milan Bouchet-Valat <nalimilan@club.fr> - 2.0.0-4
+- Drop libstdc++-devel from BuildRequires.
+- Move %%check after %%install.
+
+* Sat Dec 14 2013 Milan Bouchet-Valat <nalimilan@club.fr> - 2.0.0-3
+- Remove gcc-c++ from BuildRequires as it is an exception.
+- Fix command in %%check and pass CXXFLAGS to scons.
+- Use %%global instead of %%define.
+
+* Thu Dec 12 2013 Milan Bouchet-Valat <nalimilan@club.fr> - 2.0.0-2
+- Fix building when "--without static_libs" is passed.
+- Remove %%ghost with libdouble-conversion.so.2.
+- Drop BuildRoot.
+- Use rm instead of %%{__rm} for consistency
+- Use %%{?dist} in Release.
+
+* Wed Dec 11 2013 Milan Bouchet-Valat <nalimilan@club.fr> - 2.0.0-1
+- Initial Fedora package based on a PLD Linux RPM by Elan Ruusamäe <glen@delfi.ee>:
+  http://git.pld-linux.org/gitweb.cgi?p=packages/double-conversion.git

+ 11 - 0
e/emacs/coding-system-init.el.emacs27

@@ -0,0 +1,11 @@
+;;
+;; coding-system-init.el
+;;  set default coding system
+;;
+
+(set-language-environment 'Japanese)
+(prefer-coding-system  'utf-8-unix)
+
+;; Local Variables:
+;; mode: emacs-lisp
+;; End:

+ 957 - 0
e/emacs/emacs-vl.spec

@@ -0,0 +1,957 @@
+%global emacsversion 27.1
+#% define gitcommit 20110817
+#%define emacsrelease 1.rc2%{?gitcommit:.%gitcommit}%{?_dist_release}
+%define emacsrelease 1%{?_dist_release}
+%define vine_default_major_version %(echo %_dist_release|%__sed s/vl//)
+%global majorver %(echo %{emacsversion} | cut -d . -f 1)
+
+%define _noVersionedDependencies 1
+%define prereq_ge()  %(LC_ALL="C" rpm -q --queryformat 'PreReq:%%{NAME} >= %%{VERSION}' %1| grep -v "is not")
+
+%define infodir %{_infodir}/emacs-%{emacsversion}
+
+%define menutreeelversion 0.97
+
+Summary:      GNU Emacs editor 
+Summary(ja):  GNU Emacs エディタ
+Name:         emacs
+#Name:         emacs%{majorver}
+#Provides:     emacs-snapshot
+Version:      %{emacsversion}
+Release:      %{emacsrelease}
+Group:        Applications/Editors/Emacs
+Distribution: Vine Linux
+Vendor:       Project Vine
+Packager:     munepi, daisuke
+
+License:      GPLv3+
+Source0:      https://ftp.gnu.org/gnu/emacs/emacs-%{version}.tar.xz
+#Source0:      ftp://ftp.gnu.org/pub/gnu/emacs/emacs-%{version}%{?gitcommit:.git%gitcommit}.tar.xz
+#Source0:      ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-%{emacsversion}-rc2.tar.xz
+#Source1:      emacs-snapshot.sh
+
+Source10:     site-start.el.emacs%{majorver}
+## local settings for local system
+Source20:     emacs%{majorver}-local.el
+# desktop file
+Source50:     emacs%{majorver}.desktop.in
+## Enable Japanese Menu
+## http://www11.atwiki.jp/s-irie/pages/13.html
+# Source100:    menu-tree-el-%{menutreeelversion}.tar.gz
+# Source101:    menu-tree-init.el.emacs25
+Source102:    coding-system-init.el.emacs%{majorver}
+## default settings for Vine Linux
+Source150:    vine-default-base.el
+## Vine Patch(es)
+Patch11:      emacs-24.3.90-locallisppath.patch
+#Patch20:      emacs-23.1.90-fixed-resolution.patch
+Patch30:      emacs-24.0.90-libs-termcap.patch
+# patches from Fedora 
+# rhbz#713600
+Patch107: emacs-spellchecker.patch
+
+# security patches (from Debian)
+#Patch1001:    emacs-21.1-bzip2.patch.bz2
+
+BuildRoot:    %{_tmppath}/%{name}-%{version}-root
+# Requires:     tamago >= 4.0.6
+Obsoletes:    mule-base, mule-canna, mule-wnn6, mule, emacs-beta
+Obsoletes:    emacs21 <= 21.2-0vl7
+Obsoletes:    emacs22 <= 22.1
+Obsoletes:    emacs23 <= 23.1
+Obsoletes:    emacs24 <= 24.1
+Obsoletes:    emacs25 <= 25.3
+Provides:     emacs%{majorver} = %{version}
+Provides:     emacsen = 0.1
+#% prereq_ge    emacsen-common
+Requires(post):    emacsen-common
+Requires(postun):    emacsen-common
+
+BuildRequires: autoconf
+BuildRequires: xz
+BuildRequires: atk-devel
+BuildRequires: dbus-devel
+BuildRequires: alsa-lib-devel
+BuildRequires: gnutls-devel
+BuildRequires: gtk3-devel
+BuildRequires: cairo-devel
+BuildRequires: freetype2-devel, fontconfig-devel
+BuildRequires: libpng-devel, libjpeg-devel, libtiff-devel, libungif-devel
+BuildRequires: librsvg2-devel, libotf-devel
+BuildRequires: ImageMagick-devel
+BuildRequires: libxml2-devel > 2.6.17
+BuildRequires: m17n-lib-devel
+BuildRequires: libX11-devel, libXau-devel, libXdmcp-devel, libXrender-devel
+BuildRequires: libSM-devel, libXt-devel, libXpm-devel, ncurses-devel
+BuildRequires: xorg-x11-proto-devel, zlib-devel
+BuildRequires: texinfo
+BuildRequires: nkf
+
+%description
+GNU Emacs is the extensible, customizable, self-documenting real-time
+display editor. 
+
+%description -l ja 
+GNU Emacs は拡張性が高く、さまざまなカスタマイズが可能な高機能エディタです。
+
+
+%debug_package
+
+
+%prep
+%setup -q -n emacs-%{version}
+
+%patch11 -p1
+#%patch20 -p1
+#%patch30 -p1
+
+%patch107 -p1 -b .spellchecker
+
+#%patch1001 -p1
+
+
+# Avoid trademark issues
+grep -v "tetris.elc" lisp/Makefile.in > lisp/Makefile.in.new \
+   && %__mv lisp/Makefile.in.new lisp/Makefile.in || exit 1
+%__rm -f lisp/play/tetris.el lisp/play/tetris.elc || exit 1
+
+#autoconf
+autoreconf -i -I m4
+
+
+%build
+export CFLAGS="-DMAIL_USE_LOCKF $RPM_OPT_FLAGS"
+#to find installinfo
+export PATH="$PATH:/sbin:/usr/sbin"
+
+%configure \
+	--libexecdir=%{_libdir} --infodir=%{infodir} \
+	--with-pop \
+	--with-sound \
+	--disable-rename \
+	--with-x-toolkit=gtk3 \
+	--with-freetype \
+	--with-xft \
+	--enable-font-backend \
+	--without-gpm \
+	--with-libotf \
+	--with-m17n-flt \
+	--with-dbus \
+	--disable-libsystemd \
+	;
+
+%__make bootstrap
+%__make %{?_smp_mflags}
+
+
+%install
+[ "${RPM_BUILD_ROOT}" != "/" ] && %__rm -rf ${RPM_BUILD_ROOT}
+
+%makeinstall libexecdir=$RPM_BUILD_ROOT%{_libdir} \
+	infodir=${RPM_BUILD_ROOT}%{infodir} 
+
+# systemd files
+%__rm -rf $RPM_BUILD_ROOT%{_libdir}/systemd 
+
+## This is a duplicate of the file in FLAVOR/site-lisp
+%__rm -f $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/subdirs.el || exit 1
+
+# (cd $RPM_BUILD_ROOT%{_mandir}/man1/; %__mv ctags.1 gctags.1)
+# (cd $RPM_BUILD_ROOT%{_bindir}/; %__mv ctags gctags)
+
+%__mkdir_p  $RPM_BUILD_ROOT%{_datadir}/emacs-%{version}/etc
+%__mkdir_p  $RPM_BUILD_ROOT%{_datadir}/emacs-%{version}/site-lisp
+# %__tar zxvf %{SOURCE100}
+# %__cp -a menu-tree-el-%{menutreeelversion}/menu-tree.el $RPM_BUILD_ROOT%{_datadir}/emacs-%{version}/site-lisp/
+# nkf -w --overwrite $RPM_BUILD_ROOT%{_datadir}/emacs-%{version}/site-lisp/menu-tree.el
+
+## vine default
+%__cp -a %{SOURCE150} \
+    $RPM_BUILD_ROOT%{_datadir}/emacs-%{version}/site-lisp/
+
+# The elisp reference manual
+#bzcat %{SOURCE13} | tar xf -
+#pushd elisp-manual-21-2.8
+#install -m 644 elisp elisp-? elisp-?? $RPM_BUILD_ROOT/%{infodir}
+#popd
+
+# some modifications of installed files
+
+#rm -f $RPM_BUILD_ROOT%{infodir}/dir
+#gzip -9nf $RPM_BUILD_ROOT%{infodir}/*
+
+%__install -m 644 %{SOURCE10} \
+	$RPM_BUILD_ROOT/%{_datadir}/emacs-%{version}/site-lisp/site-start.el
+%__sed -i -e 's/EMACS_VERSION/%{version}/g' \
+          -e 's/VINE_DEFAULT_MAJOR_VERSION/%{vine_default_major_version}/g' \
+	$RPM_BUILD_ROOT/%{_datadir}/emacs-%{version}/site-lisp/site-start.el
+
+## create site-start.d directory
+%__install -m 755 -d ${RPM_BUILD_ROOT}/etc/emacs-%{version}/site-start.d
+
+# install coding-system init.el
+# %__install -m644 %{SOURCE101} \
+#     $RPM_BUILD_ROOT/%{_datadir}/emacs-%{version}/site-lisp/menu-tree-init.el
+# %__ln_s -f %{_datadir}/emacs-%{version}/site-lisp/menu-tree-init.el \
+#     ${RPM_BUILD_ROOT}/etc/emacs-%{version}/site-start.d/60menu-tree-init.el
+%__install -m644 %{SOURCE102} \
+    $RPM_BUILD_ROOT/%{_datadir}/emacs-%{version}/site-lisp/coding-system-init.el
+%__ln_s -f %{_datadir}/emacs-%{version}/site-lisp/coding-system-init.el \
+    ${RPM_BUILD_ROOT}/etc/emacs-%{version}/site-start.d/60coding-system-init.el
+
+## install system-wide configure file
+%__install -m755 -d ${RPM_BUILD_ROOT}/etc/emacs
+%__install -m644 %{SOURCE20} ${RPM_BUILD_ROOT}/etc/emacs/
+%__sed -i -e 's/EMACS_VERSION/%{version}/g' \
+    ${RPM_BUILD_ROOT}/etc/emacs/emacs%{majorver}-local.el
+
+## Python mode, php mode and rpm-spec mode
+
+## make file list
+strip $RPM_BUILD_ROOT%{_bindir}/* || :
+
+# install desktop file
+%__mkdir_p $RPM_BUILD_ROOT%{_datadir}/applications
+%__sed -e "s/@@EMACS_VERSION@@/%{emacsversion}/g" %{SOURCE50} > \
+    $RPM_BUILD_ROOT%{_datadir}/applications/$(basename %{SOURCE50} .in)
+[ -f $RPM_BUILD_ROOT%{_datadir}/applications/emacs.desktop ] && \
+    %__rm -f $RPM_BUILD_ROOT%{_datadir}/applications/emacs.desktop || exit 1
+
+# install icons
+%__mkdir_p $RPM_BUILD_ROOT%{_datadir}/icons
+%__cp -a etc/images/icons/hicolor $RPM_BUILD_ROOT%{_datadir}/icons/
+## remove historical icons
+find $RPM_BUILD_ROOT%{_datadir}/icons/ -type f -name '*emacs22*' -exec rm -f {} \;
+find $RPM_BUILD_ROOT%{_datadir}/icons/ -type f -name '*emacs23*' -exec rm -f {} \;
+find $RPM_BUILD_ROOT%{_datadir}/icons/ -type f -name '*emacs-document23*' -exec rm -f {} \;
+
+## remove man files
+%__rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/* || exit 1
+
+## Remove ctags
+#rm -f $RPM_BUILD_ROOT/usr/bin/ctags
+#rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/*ctags*
+#rm -f $RPM_BUILD_ROOT/%{_datadir}/emacs/%{version}/etc/ctags*
+
+DIR="${RPM_BUILD_ROOT}%{_datadir}/emacs \
+     ${RPM_BUILD_ROOT}%{_datadir}/emacs-%{version}"
+BIN=${RPM_BUILD_ROOT}%{_bindir}
+LIB=${RPM_BUILD_ROOT}%{_libdir}
+EL="*.el"
+
+mkdir -p %{buildroot}%{_datadir}/appdata
+cp -f %{buildroot}%{_datadir}/metainfo/emacs.appdata.xml \
+	%{buildroot}%{_datadir}/appdata/emacs.appdata.xml
+
+## prepare file list for emacs
+echo "/usr/bin/ctags
+/usr/bin/ebrowse
+/usr/bin/etags
+/usr/bin/emacs
+/usr/bin/emacsclient
+/usr/share/appdata/emacs.appdata.xml
+/usr/share/icons/hicolor/scalable/apps/emacs.svg
+/usr/share/icons/hicolor/scalable/mimetypes/emacs-document.svg" |
+    %__sed -e "s#[^\n]*#mv ${RPM_BUILD_ROOT}\0 ${RPM_BUILD_ROOT}\0.emacs-%{version}#"| 
+    awk '{system($_)}'
+
+find $DIR $BIN $LIB -type d |
+  %__sed -e "s#^${RPM_BUILD_ROOT}#%dir #" > rpm-files
+
+find $DIR $BIN $LIB -type f -o -type l |
+  %__sed -e "
+    s#^${RPM_BUILD_ROOT}\(.*movemail\)#%attr(2755, root, mail) \1#
+    s#^${RPM_BUILD_ROOT}##
+  " >> rpm-files
+
+
+%clean
+[ "${RPM_BUILD_ROOT}" != "/" ] && %__rm -rf ${RPM_BUILD_ROOT}
+
+
+%define info_files ccmode cl dired-x ediff emacs forms gnus info message mh-e reftex sc vip viper widget
+
+
+%pre
+if [ -L %{_datadir}/emacs-%{version}/site-lisp ] ; then
+    %__rm -f %{_datadir}/emacs-%{version}/site-lisp
+fi
+
+if [ -d %{_datadir}/emacs/%{version}/site-lisp ] ; then
+    find %{_datadir}/emacs/%{version}/site-lisp/* -maxdepth 0 | grep -v subdirs.el | \
+	xargs %__rm -rf
+fi
+
+
+%post
+touch --no-create %{_datadir}/icons/hicolor
+if [ -x %{_bindir}/gtk-update-icon-cache ]; then
+   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
+fi
+%{_bindir}/update-desktop-database %{_datadir}/applications &>/dev/null ||:
+
+if [ "$1" = 1 ]; then
+
+%_addflavorslist emacs-%{version}
+
+export PRIORITY=50
+
+%_installemacs emacs-%{version}
+
+unset PRIORITY
+fi
+
+if [ "$1" = 2 ]; then
+
+#  export PRIORITY=50
+  
+#  %_installemacs emacs-%{version}
+  
+#  unset PRIORITY
+    
+  echo emacs-%{version} >  /var/lib/emacsen-common/doinstaflavor-emacs
+    
+fi
+
+
+%postun
+%{_bindir}/update-desktop-database %{_datadir}/applications &>/dev/null ||:
+touch --no-create %{_datadir}/icons/hicolor
+if [ -x %{_bindir}/gtk-update-icon-cache ]; then
+  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor
+fi
+
+if [ $1 = 1 ]; then
+# run upgrade install time
+
+# old version uninstall
+
+%_removeflavorslist emacs-%{version}
+
+%_removeemacs emacs-%{version}
+
+#new version install
+if [ -f /var/lib/emacsen-common/doinstaflavor-emacs ] ; then
+
+NEWFLAVOR=$(cat /var/lib/emacsen-common/doinstaflavor-emacs)
+
+%_addflavorslist $NEWFLAVOR
+
+export PRIORITY=50
+
+%_installemacs $NEWFLAVOR
+
+unset PRIORITY
+
+%__rm -rf /var/lib/emacsen-common/doinstaflavor-emacs
+
+fi
+
+fi
+
+
+%preun
+if [ $1 = 0 ]; then
+
+%_removeflavorslist emacs-%{version}
+
+%_removeemacs emacs-%{version}
+
+fi
+
+
+%triggerpostun -- emacs23 < %{version}-%{release}
+
+%_addflavorslist emacs-%{version}
+
+export PRIORITY=50
+
+%_installemacs emacs-%{version}
+
+unset PRIORITY
+
+
+%files -f rpm-files 
+%defattr(-,root,root)
+%doc INSTALL README BUGS ChangeLog COPYING
+#%doc INSTALL.BZR
+%dir %{_sysconfdir}/emacs-%{version}
+%dir %{_sysconfdir}/emacs-%{version}/site-start.d
+%{_sysconfdir}/emacs-%{version}/site-start.d/*.el
+%config(noreplace) %{_sysconfdir}/emacs/emacs%{majorver}-local.el
+%{_infodir}/*
+# %{_mandir}/*/*
+%{_datadir}/applications/emacs%{majorver}.desktop
+%{_datadir}/appdata/emacs.appdata.xml*
+%{_datadir}/metainfo/emacs.appdata.xml
+%{_datadir}/icons/hicolor/*
+# %{_datadir}/emacs-%{version}/site-lisp
+#%dir %{_localstatedir}/games/emacs
+#%{_localstatedir}/games/emacs/*
+%{_includedir}/*
+
+%changelog
+* Sat Feb 27 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 27.1-1
+- new upstream release.
+
+* Tue Oct 29 2019 Toshiaki Ara <ara_t@384.jp> 26.3-3
+- rebuild with OpenEXR-libs-2.4.0 (required by ImageMagick)
+
+* Sun Sep 08 2019 Toshiaki Ara <ara_t@384.jp> 26.3-2
+- rebuild with giflib-5
+
+* Tue Sep 03 2019 Toshiaki Ara <ara_t@384.jp> 26.3-1
+- update to 26.3
+
+* Mon Jun  4 2018 IWAI, Masaharu <iwaim.sub@gmail.com> 26.1-1
+- update to 26.1
+- build with GTK3 for VineSeed
+- add '--disable-libsystemd' option
+- drop games dir; upstream deleted
+
+* Tue May 29 2018 IWAI, Masaharu <iwaim.sub@gmail.com> 25.3-1
+- update to 25.3
+- add appdata file
+
+* Mon Aug 22 2016 Munehiro Yamamoto <munepi@vinelinux.org> 25.1-1.rc2-1
+- update to Emacs 25.1 Release Candidate 2
+
+* Mon Feb  8 2016 Munehiro Yamamoto <munepi@vinelinux.org> 25.0.90-1
+- update to 25.0.90
+
+* Sun Apr 12 2015 Munehiro Yamamoto <munepi@vinelinux.org> 24.5-1
+- new upstream release
+
+* Mon Mar  9 2015 Munehiro Yamamoto <munepi@vinelinux.org> 24.4.91-1
+- update to 24.4.91
+
+* Fri Mar  6 2015 Munehiro Yamamoto <munepi@vinelinux.org> 24.4.90-1
+- update to 24.4.90
+
+* Thu Oct 23 2014 Munehiro Yamamoto <munepi@vinelinux.org> 24.4-1
+- new upstream release
+
+* Fri Aug 15 2014 Munehiro Yamamoto <munepi@vinelinux.org> 24.3.93-1
+- updated to 24.3.93
+
+* Sun Jul  6 2014 Munehiro Yamamoto <munepi@vinelinux.org> 24.3.92-1
+- updated to 24.3.92
+
+* Wed Jul 02 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 24.3.91-2
+- rebuild with ImageMagick-6.8.9.5
+
+* Mon May 12 2014 Munehiro Yamamoto <munepi@vinelinux.org> 24.3.91-1
+- updated to 24.3.91
+
+* Sun Apr 27 2014 Munehiro Yamamoto <munepi@vinelinux.org> 24.3.90-1
+- updated to 24.3.90
+
+* Tue Feb 25 2014 NAKAMURA Kenta <kenta@vinelinux.org> 24.3-5
+- rebuilt with gnutls-3.2
+
+* Mon Jan 13 2014 Munehiro Yamamoto <munepi@vinelinux.org> 24.3-4
+- rebuilt
+
+* Wed Aug 14 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 24.3-3
+- rebuild with ImageMagick-6.8.6.8
+
+* Sat May 11 2013 Munehiro Yamamoto <munepi@vinelinux.org> 24.3-2
+- dropped some obsolete patches
+- disable menu-tree-el
+  - added coding-system-init.el instead of menu-tree-init.el
+
+* Sat Mar 30 2013 Munehiro Yamamoto <munepi@vinelinux.org> 24.3-1
+- new upstream release
+
+* Thu Feb  7 2013 Munehiro Yamamoto <munepi@vinelinux.org> 24.2.93-1
+- updated to 24.2.93 (24.3 pretest)
+
+* Mon Jan 14 2013 Munehiro Yamamoto <munepi@vinelinux.org> 24.2.92-1
+- updated to 24.2.92 (24.3 pretest)
+
+* Sun Nov 25 2012 Munehiro Yamamoto <munepi@vinelinux.org> 24.2.90-1
+- updated to 24.2.90 (24.3 pretest)
+
+* Mon Aug 27 2012 Munehiro Yamamoto <munepi@vinelinux.org> 24.2-1
+- new upstream release
+
+* Sun Jun 10 2012 Munehiro Yamamoto <munepi@vinelinux.org> 24.1-1
+- new upstream release
+
+* Sat May 19 2012 Munehiro Yamamoto <munepi@vinelinux.org> 24.0.97-1
+- updated to 24.0.97 (24.1 pretest)
+
+* Sun Apr 29 2012 Munehiro Yamamoto <munepi@vinelinux.org> 24.0.96-1
+- updated to 24.0.96 (24.1 pretest)
+
+* Mon Apr  2 2012 Munehiro Yamamoto <munepi@vinelinux.org> 24.0.95-1
+- updated to 24.0.95 (24.1 pretest)
+
+* Sun Mar 11 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 24.0.94-2
+- rebuild with ImageMagick-6.7.5.10
+
+* Mon Feb 27 2012 Munehiro Yamamoto <munepi@vinelinux.org> 24.0.94-1
+- updated to 24.0.94 (24.1 pretest)
+
+* Tue Feb 14 2012 Munehiro Yamamoto <munepi@vinelinux.org> 24.0.93-2
+- use gtk as X toolkit (for vl6)
+
+* Mon Jan 30 2012 Munehiro Yamamoto <munepi@vinelinux.org> 24.0.93-1
+- updated to 24.0.93 (24.1 pretest)
+
+* Thu Dec  1 2011 Munehiro Yamamoto <munepi@vinelinux.org> 24.0.92-1
+- updated to 24.0.92 (24.1 pretest)
+
+* Wed Nov  2 2011 Munehiro Yamamoto <munepi@vinelinux.org> 24.0.91-1
+- updated to 24.0.91 (24.1 pretest)
+
+* Thu Oct  6 2011 Munehiro Yamamoto <munepi@vinelinux.org> 24.0.90-2
+- set --with-x-toolkit=gtk3 (%%configure)
+  - added BuildRequires: gtk3-devel
+
+* Mon Sep 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 24.0.90-1
+- updated to 24.0.90 (24.1 pretest)
+- applied emacs-24.0.90-libs-termcap.patch
+
+* Sat Jul 09 2011 Munehiro Yamamoto <munepi@vinelinux.org> 24.0.50-10.20110817
+- emacs24 24.0.50 (20110817) snapshot
+- added BuildRequires: ImageMagick-devel, libSM-devel, libxml2-devel > 2.6.17
+
+* Sun Jun 05 2011 Munehiro Yamamoto <munepi@vinelinux.org> 24.0.50-9.20110604
+- emacs24 24.0.50 (20110604) snapshot
+
+* Wed Apr 13 2011 Munehiro Yamamoto <munepi@vinelinux.org> 24.0.50-8.20110413
+- emacs24 24.0.50 (20110413) snapshot
+
+* Tue Apr 05 2011 Munehiro Yamamoto <munepi@vinelinux.org> 24.0.50-7.20110318
+- updated site-start.el
+  - defined vine-default-major-version, vine-default-minor-version, 
+    vine-default-version
+  - set "ibus-el" to emacs-ime as default
+  - added ", modified for Vine Linux" to the end of emacs-build-system
+  - set "Vine _at_mark_ vinelinux.org" to report-emacs-bug-address
+
+* Sun Apr 03 2011 Munehiro Yamamoto <munepi@vinelinux.org> 24.0.50-6.20110318
+- fixed site-start.el
+  - do not use the macro loop (contained in the common lisp)
+
+* Tue Feb 22 2011 Munehiro Yamamoto <munepi@vinelinux.org> 24.0.50-5.20110318
+- emacs24 24.0.50 (20110318) snapshot
+
+* Tue Feb 22 2011 Munehiro Yamamoto <munepi@vinelinux.org> 24.0.50-4.20110222
+- emacs24 24.0.50 (20110222) snapshot
+- updated site-start.el
+  - defined the function drop-vine-default-from-load-path (regex)
+
+* Sat Jan 22 2011 Munehiro Yamamoto <munepi@vinelinux.org> 24.0.50-3.20110128
+- emacs24 24.0.50 (20110128) snapshot
+
+* Sun Jan 02 2011 Munehiro Yamamoto <munepi@vinelinux.org> 24.0.50-2.20110101
+- emacs24 24.0.50 (20110101) snapshot
+
+* Sun Dec 05 2010 Munehiro Yamamoto <munepi@vinelinux.org> 24.0.50-1.20101203
+- emacs24 24.0.50 (20101203) snapshot 
+- applied new vine-default system
+  - updated site-start.el
+  - updated vine-default-{base,faces}.el
+  - dropped showvdefaultemacs
+    - merged to emacsen-common package as show-vine-default.sh
+  - renamed local wide configration file to emacs24-local.el
+- updated menu-tree.el to version 0.97
+- added Provides: emacs-snapshot
+
+* Sat Oct 30 2010 Munehiro Yamamoto <munepi@vinelinux.org> 23.2-4
+- updated vine-default-base.el
+  - changed the variable next-line-add-newlines to nil (default)
+
+* Thu Sep 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> 23.2-3
+- updated menu-tree.el to version 0.96
+
+* Sat Jul 03 2010 Munehiro Yamamoto <munepi@vinelinux.org> 23.2-2
+- applied some patches from Fedora
+  - Fixed handling of dual spacing fonts rhbz#599437
+  - Add patch to fix rhbz#595546 hideshow library matches wrong parenthesis
+    under certain circumstances
+  - Added a patch fixing m17n and libotf version checking (m17ncheck)
+- updated menu-tree.el to version 0.95
+- merged emacs23-vl.spec of Vine Linux 5.1
+#* Thu Apr 01 2010 Munehiro Yamamoto <munepi@vinelinux.org> 23.1-9
+#- applied security fix emacs23-CVE-2010-0825-fix-movemail-race.diff from Ubuntu
+#
+#* Fri Feb 09 2010 Munehiro Yamamoto <munepi@vinelinux.org> 23.1-8
+#- added Requires(post): emacsen-common, Requires(postun): emacsen-common
+#
+#* Fri Feb 05 2010 Munehiro Yamamoto <munepi@vinelinux.org> 23.1-7
+#- dropped BuildRequires: m17n-lib-devel
+#- added --without-m17n-flt in %%configure
+
+* Mon May 31 2010 Munehiro Yamamoto <munepi@vinelinux.org> 23.2-1
+- new upstream release
+- updated menu-tree.el to version 0.94
+- updated menu-tree-init.el.emacs23
+  - used prefer-coding-system
+
+* Wed Apr 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 23.1.96-1
+- updated to 23.1.96 (23.2 pretest)
+
+* Sun Apr 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 23.1.95-2
+- removed /usr/share/emacs/site-lisp/subdirs.el
+
+* Sat Apr 03 2010 Munehiro Yamamoto <munepi@vinelinux.org> 23.1.95-1
+- updated to 23.1.95 (23.2 pretest)
+- added BuildRequires: 
+  - atk-devel
+  - dbus-devel
+  - GConf2-devel
+  - alsa-lib-devel
+- added some configure options: 
+  --with-libotf --with-m17n-flt --with-dbus --with-gconf
+
+* Sun Mar 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 23.1.94-1
+- updated to 23.1.94
+
+* Thu Mar 04 2010 Munehiro Yamamoto <munepi@vinelinux.org> 23.1.93-1
+- updated to 23.1.93 alpha
+
+* Sat Feb 13 2010 Munehiro Yamamoto <munepi@vinelinux.org> 23.1.92-2
+- added Requires(post): emacsen-common, Requires(postun): emacsen-common
+
+* Tue Feb 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 23.1.92-1
+- update to 23.1.92 alpha
+
+* Sun Jan 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 23.1-6
+- added BuildRequires: 
+  - librsvg2-devel
+  - m17n-lib-devel
+  - libotf-devel
+
+* Sun Jan 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 23.1-5
+- changed License to GPLv3+
+- renamed emacs23.desktop to emacs23.desktop.in
+- updated vine-default-base.el (See [vine-users:079919])
+- fixed in upstream CVS (from Fedora)
+  - fix #543046 - Using scroll bar in emacs highlights/selects text
+  - fix #542657 - emacs does not display indic text
+  - Fixed rhbz#545398 - ETags messes up filenames
+
+* Tue Sep 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 23.1-4
+- rebuilt to add signature
+
+* Wed Aug 19 2009 Munehiro Yamamoto <munepi@vinelinux.org> 23.1-3
+- added BuildRequires: nkf
+- updated menu-tree-init.el.emacs23
+  - fixed menu-tree encoding <BTS:VineLinux:766>
+- set Exec=emacs-@@EMACS_VERSION@@ in emacs23.desktop
+
+* Wed Aug 19 2009 Munehiro Yamamoto <munepi@vinelinux.org> 23.1-2
+- replaced BR: libungif-devel with BR: giflib-devel
+
+* Sat Aug 01 2009 Munehiro Yamamoto <munepi@vinelinux.org> 23.1-1
+- new upstream release
+
+* Sat Jul 25 2009 Munehiro Yamamoto <munepi@vinelinux.org> 23.0.96-2.20090714
+- updated vine-default-faces.el to sync with emacs22
+
+* Tue Jul 14 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 23.0.96-1.20090714
+- update to 23.0.96 (20090714) snapshot
+- update vine-default-faces.el
+  - use bash to call gconftool-2
+
+* Sat Jun 27 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 23.0.94-4.20090527
+- update vine-default-faces.el
+  - added \'font in default-frame-alist
+    (if \'font is already in default-frame-alist, overwrited it)
+
+* Wed Jun 10 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 23.0.94-3.20090527
+- update vine-default-faces.el: 
+  - use set-frame-font
+    bacause set-default-font function is obsolete since Emacs 23.1
+    (See M-x describe-function RET set-default-font)
+
+* Sun Jun 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 23.0.94-2.20090527
+- update vine-default-faces.el: 
+  - set desktop-gnome-interface-monospace-font-name 
+    from /desktop/gnome/interface/monospace_font_name
+  - automatically set set-default-font 
+    with desktop-gnome-interface-monospace-font-name
+
+* Wed May 27 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 23.0.94-1.20090527
+- update to emacs-23.0.94 (20090527) snapshot
+- add --without-gpm to configure
+
+* Thu May 21 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 23.0.92-7.20090422
+- defined show-vine-default function in site-start.el
+  - added showvdefaultemacs script
+
+* Wed May 20 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 23.0.92-6.20090422
+- set PRIORITY=40
+
+* Wed May 06 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 23.0.92-5.20090422
+- changed menu-tree-init.el from hard copy to symbolic link 
+  on /etc/emacs-23.0.92/site-start.d
+- added %%{_mandir}/*/* in %%files section
+
+* Sat May 02 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 23.0.92-4.20090422
+- updated menu-tree.el to v0.93
+
+* Fri May 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 23.0.92-3.20090422
+- returned alternatives priority to 30
+  (emacs: 30, emacs22: 30)
+
+* Sun Apr 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 23.0.92-2.20090422
+- installed system-wide configure file in /etc/emacs
+- updated vine-default-base.el
+- changed alternatives priority from 30 to 50 
+  (emacs: 50, emacs22: 30)
+
+* Wed Apr 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 23.0.92-1.20090422
+- update to emacs 23.0.92 (20090422) snapshot
+- add %%triggerpostun to fix alternatives
+
+* Tue Apr 21 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 23.0.91-3.20090325
+- renamed from emacs23 to emacs (emacs-22.x would be renamed to emacs22)
+- updated default settings for Vine Linux
+  - dropped vine-default-mouse.el, vine-default-misc.el
+
+* Sat Apr 11 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 23.0.91-2.20090325
+- enable default settings for Vine Linux
+  - added site-start.el.emacs23
+  - updated site-start.el
+  - added vine-default-base.el, vine-default-faces.el, vine-default-mouse.el, 
+    vine-default-misc.el
+
+* Wed Mar 25 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 23.0.91-1.20090325
+- emacs23 23.0.91 snapshot
+
+* Tue Sep 09 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 23.0.60-2.20080908
+- drop patch10
+- s/emacsrelese/emacsrelease/
+
+* Mon Sep 08 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 23.0.60-1.20080908
+- emacs23 23.0.60 snapshot
+
+* Sun Sep 07 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 22.3-1
+- new upstream release
+
+* Mon Aug 25 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 22.2-3
+- import security fixes from Debian
+  CVE-2008-2142: fix insecure setting of fast-lock-cache-directories
+  CVE-2008-1694: fix insecure temporary file creation in vcdiff script
+                 leading to possible symlink attacks
+
+* Wed Jun 25 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 22.2-2
+- update menu-tree.el
+- add 60menu-tree-init.el to sed coding-system and load menu-tree
+- build with xorg-x11-7.3
+  - update BuildRequires
+
+* Sun Mar 30 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 22.2-1
+- new upstream release
+
+* Wed Nov 28 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 22.1-0vl2
+- add Patch10000 to fix local variable processing security bypass
+  vulnerability.
+  - http://www.frsirt.com/english/advisories/2007/3715
+  - http://bugs.debian.org/449008
+
+* Mon Jun 04 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 22.1-0vl1
+- new upstream release
+- rename to emacs from emacs22 (emacs-21.x would be renameed to emacs21)
+- drop emcws support
+
+* Sun May 20 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 22.0.50-0.20060403vl3
+- rebuilt with new toolchain
+
+* Sat May 06 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 22.0.50-0.20060403vl2
+- changed Group:
+
+* Mon Apr 03 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 22.0.50-0.20060403vl1
+- update to CVS-20060403
+- update emacs22.desktop
+
+* Wed Sep 28 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 22.0.50-0.20050927vl2
+- fix site-start.el
+
+* Tue Sep 27 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 22.0.50-0.20050927vl1
+- update to CVS-20050927
+
+* Thu Sep  8 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 22.0.50-0.20050907vl1
+- initial build for Vine Linux based on emacs package.
+  - emacs-22.0.50 on CVS-20050907
+
+* Sat Sep  3 2005 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 21.4-0vl3
+- create site-start.d directory on %install
+
+* Thu Feb 17 2005 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 21.4-0vl2
+- included leim-21.4
+- update emcws-21.3-20031213.gz
+
+* Wed Feb 16 2005 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 21.4-0vl1
+- update
+
+* Sat Jul 24 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 21.3-0vl7
+- rebuild with Xaw3d, add BuildRequires: Xaw3d-devel
+
+* Fri Jul 23 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 21.3-0vl6
+- add Patch20 to fix display resolutions. (set to 96dpi)
+  (do not compute dynamically from display's size)
+
+* Tue Mar 16 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 21.3-0vl5
+- rebuilt with new toolchain environment
+
+* Thu Jul 17 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 21.3-0vl4
+- use site-start.el(reading /etc/emacs-21.3/site-start.d/*.el)
+
+* Wed May  7 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 21.3-0vl3
+- add BuildPrereq: libpng >= 1.2.5
+
+* Tue Apr 15 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 21.3-0vl2
+- fixed %%pre script
+
+* Tue Mar 25 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 21.3-0vl1
+- new upstream release
+- remove patch14 whick included in upstream
+
+* Thu Jan 16 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 21.2-0vl11
+- add patch14 to fix frame title text encoding.
+  - http://tsukuba.m17n.org/mule-ja-archive/2002-10/msg00004.html
+
+* Tue Dec 10 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 21.2-0vl10
+- autoconf-2.13, not autoconf in %%setup section
+- BuildPreReq: autoconf213
+
+* Mon Dec  9 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 21.2-0vl9
+- modifiy rpm scripts.
+
+* Mon Dec  9 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 21.2-0vl8
+- rename to emacs
+- obsoletes emacs21 <= 21.2-0vl7, provides emacs21 = %%{version}
+
+* Sun Dec  1 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 21.2-0vl7
+- enable menubar fontset patch (Patch103)
+
+* Sat Nov 30 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 21.2-0vl6
+- add requires/buildprereq tags.
+
+* Sat Nov 30 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 21.2-0vl5
+- add emcws-20021014
+
+* Sun Jul 21 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 21.2-0vl4
+- removed *-mode 
+
+* Sat Jul 20 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 21.2-0vl3
+- python-mode was made pending
+- some additional *.el files was moved from "emacs/site-lisp" to
+  "emacs-(version)/site-lisp"
+
+* Sat Jul 13 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 21.2-0vl2
+- added some sources and patches from rawhide 21.2-11 and mandrake 21.2-7mdk
+
+* Sat May 11 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 21.2-0vl1
+- update.
+- Package Name emacs-beta -> emacs21
+- Add Patch100,101,102, Source100(default = Disable)
+- (from http://phe.phyas.aichi-edu.ac.jp/~cyamauch/pl2.html#emacs21)
+- --infodir=%{_infodir}/emacs-21.2(VineSeed-Plus:00723)
+
+* Thu Dec 27 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 21.1-0vl7
+- site-lisp moved under /usr/share/emacs-21.1/ (Patch11 and %%pre section)
+
+* Thu Dec 06 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 21.1-0vl5
+- move /tmp -> /var/lib/emacsen-common (IP(package)C file)
+
+* Fri Nov 02 2001 Tomoya TAKA <tomoya@olive.plala.or.jp> 21.1-0vl4
+- replace patch10 with patch11, posted to gnu.emacs.bug
+  Message-Id: <jebsiza3db.fsf@sykes.suse.de>
+  (reported by ABE Yuji <cbo46560@pop12.odn.ne.jp>)
+
+* Fri Oct 26 2001 Kazuhisa TAKEI <takei@vinelinux.org> 21.1-0vl3
+- fixed build to fail in alpha( only apply patch0 to ppc) 
+
+* Tue Oct 23 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 21.1-0vl2
+- added Patch10 (thanks Kitame-san)
+
+* Mon Oct 22 2001 Kazuhisa TAKEI <takei@vinelinux.org> 21.1-0vl1
+- update to 21.1
+
+* Sun Sep 9 2001 Kazuhisa TAKEI <takei@vinelinux.org> 21.0.104-0vl14
+- support  shared installing otheremacsen.
+
+* Mon Jul 23 2001 Kazuhisa TAKEI <takei@vinelinux.org> 21.0.104-0vl3
+- update 21.0.104
+
+* Thu Jul 19 2001 Kazuhisa TAKEI <takei@vinelinux.org> 21.0.103-0vl2
+- support emacsen-common
+
+* Wed May 16 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
+- 21.0.103-0vl1
+- updated to 21.0.103
+- revamped and cleaned up spec file :-)
+- Requires: tamago >= 4.0.6 (...is it reasonable? Mmm...)
+
+* Mon Jan 22 2001 Kazuhisa TAKEI <takei@vinelinux.org> 21.0.95-0vl2
+- fixed .spec bugs( _libdir)
+
+* Fri Jan 12 2001 Kazuhisa TAKEI <takei@vinelinux.org> 21.0.95-0vl1
+- updated to 21.0.95 
+
+* Wed Dec 20 2000 Kazuhisa TAKEI <takei@vinelinux.org> 21.0.93-0vl3
+- fixed emacs-beta.spec
+
+* Sat Dec 16 2000 Kazuhisa TAKEI <takei@vinelinux.org> 21.0.93-0vl2
+- 21.0.93 test packaging.
+
+* Fri Jun 30 2000 T.R. Kobayashi <tkoba@ike-dyn.ritsumei.ac.jp>
+- added linespace-patch
+
+* Mon Jun 19 2000 MACHINO, Satoshi <mac@netfort.gr.jp>
+- updated to emacs 20.7
+
+* Thu Apr 20 2000 Yasuyuki Furukawa <furukawa@vinelinux.org>
+- updated to emacs 20.6
+
+* Mon Feb 28 2000 kenji KITAYAMA <kenji@gandalf.doshisha.ac.jp>
+- [emacs-20.5a-2]
+- Modified reference of Emacs Info
+
+* Sun Jan 23 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
+- [emacs-20.5a-2]
+- added ppc patch
+
+* Fri Jan  7 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rins.st.ryukoku.ac.jp>
+- [emacs-20.5a-1]
+- change version from 20.5 to 20.5a
+- added Mule-4.1 patch
+
+* Fri Jan  7 2000 Yasuyuki Furukawa <yasu@on.cs.keio.ac.jp>
+- [emacs-20.5-1]
+- add desktop-link files for desktop menu.
+
+* Fri Dec 24 1999 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rins.st.ryukoku.ac.jp>
+- [emacs-20.4-16]
+- replaced Y2K savvy timezone.{el,elc} with one from brand-new apel-10.0
+
+* Tue Dec 21 1999 Jun Nishii <jun@vinelinux.org>
+- added documents
+- strip bins
+
+* Wed Dec  1 1999 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rins.st.ryukoku.ac.jp>
+- [emacs-20.4-14]
+- Change Group to Applications/Editors/Emacs
+
+* Sat Nov  6 1999 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rins.st.ryukoku.ac.jp>
+- [emacs-20.4-13]
+- included Y2K savvy timezone.{el,elc},
+  modified by Mr. Youichi Teranishi <teranishi@gohome.org>
+
+* Tue Oct 12 1999 Yasuhide OOMORI <dasen@typhoon.co.jp>
+- [emacs-20.4-12]
+- Modified info-dir.
+- Removed -c option from %setup.
+
+* Mon Sep 20 1999 Kazuhisa TAKEI<takei@hh.iij4u.or.jp>
+- fixed XIM support patch
+* Sun Sep 19 1999 Kazuhisa TAKEI<takei@hh.iij4u.or.jp>
+- fixed postinst bug and fontset patch
+* Sun Jul 18 1999 Kazuhisa TAKEI<takei@hh.iij4u.or.jp>
+- first build

+ 22 - 0
e/emacs/emacs27-local.el

@@ -0,0 +1,22 @@
+;; 
+;; GNU Emacs EMACS_VERSION local configuration file
+;; 
+;; This configuration is read at the end of site-start.el. 
+;; Emacs configuration files are read
+;;   - distribution wide from site-start.el 
+;;   - system wide from this configuration file
+;;   - per user from ~/.emacs.d/init.el, 
+;; where per user settings override system wide settings, 
+;; and system wide settings override site-start.el. 
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+
+
+
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+;; Local Variables:
+;; mode: emacs-lisp
+;; End:

+ 12 - 0
e/emacs/emacs27.desktop.in

@@ -0,0 +1,12 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Emacs27 Editor
+Name[ja]=Emacs27 エディタ
+Comment=popular, very full featured text editor
+Comment[ja]=有名で高機能なテキストエディタ
+Icon=emacs
+Exec=emacs-@@EMACS_VERSION@@ %F
+Type=Application
+MimeType=text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
+Categories=Application;Utility;TextEditor;
+Terminal=false

+ 98 - 0
e/emacs/site-start.el.emacs27

@@ -0,0 +1,98 @@
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;;; GNU Emacs EMACS_VERSION default settings for Vine Linux
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+(setq emacs-build-system 
+      (concat emacs-build-system ", modified for Vine Linux"))
+
+(setq report-emacs-bug-address "Vine@vinelinux.org")
+
+(defcustom emacs-ime (getenv "EMACS_IME")
+  "A variable of default Input Method Editor"
+  :type 'string)
+(if (null emacs-ime)
+    (setq emacs-ime "ibus-el"))
+
+(defconst vine-default-major-version VINE_DEFAULT_MAJOR_VERSION "\
+Major version number of this version of vine-default.
+This variable equals the major version number of Vine Linux that is running.")
+
+(defconst vine-default-minor-version 0 "\
+Minor version number of this version of vine-default.
+This variable is the system number for vine-default-major-version.")
+
+(defconst vine-default-version (+ vine-default-major-version (/ (float vine-default-minor-version) 10)) "\
+The version of vine-default.")
+
+(defcustom vine-default t
+  "A boolean for all Vine Linux default settings"
+  :type 'boolean)
+(if (equal (getenv "LOGNAME") "root") 
+    (setq vine-default nil))
+
+(defcustom vine-default-base t
+  "A boolean for vine-default-base"
+  :type 'boolean)
+
+(defcustom vine-default-faces t
+  "A boolean for vine-default-faces"
+  :type 'boolean)
+
+(defvar vine-default-setup-hook nil
+  "List of functions to be called at vine-default-setup")
+
+;; (defvar after-vine-default-setup-hook nil 
+;;   "This hook is obsolete! Please do not use this hook. 
+;;    List of functions to be called at the end of vine-default-setup")
+
+(defun vine-default-setup ()
+  "A function for setup to default configurations of Vine Linux"
+  (when vine-default
+    (message "Starting vine-default-setup ...")
+    (when vine-default-base 
+      (message "Loading vine-default-base ...")
+      (require 'vine-default-base))
+    (run-hooks 'vine-default-setup-hook)
+    ;; (run-hooks 'after-vine-default-setup-hook); obsolete
+    )
+  )
+
+(defun show-vine-default ()
+  "A function to show current vine-default configurations"
+  (interactive)
+  (shell-command 
+   "/usr/lib/emacsen-common/show-vine-default.sh EMACS_VERSION"))
+
+(defun drop-vine-default-from-load-path (regex)
+  "A function to drop a path matching to REGEX from load-path"
+  (setq load-path
+	(let (list)
+	  (dolist (x (reverse load-path) list)
+	    (unless (string-match regex x)
+	      (setq list (cons x list))))
+	  )
+	)
+  )
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+;;; run functions from the /etc/emacs-EMACS_VERSION/site-start.d directory
+;;; Files in this directory ending with ".el" are run on startup
+(mapc 'load (directory-files "/etc/emacs-EMACS_VERSION/site-start.d" t "\\.el\\'"))
+
+;;; load local configuration
+(if (file-exists-p (expand-file-name "/etc/emacs/emacs26-local.el"))
+    (load (expand-file-name "/etc/emacs/emacs26-local.el")))
+
+;;; load vine-default configuration per user before vine-default-setup
+(if (file-exists-p (expand-file-name "~/.emacs.d/emacs26-vine-default.el"))
+    (load (expand-file-name "~/.emacs.d/emacs26-vine-default.el")))
+
+;;; run vine-default-setup
+(vine-default-setup)
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+;; Local Variables:
+;; mode: emacs-lisp
+;; End:

+ 85 - 63
i/inkscape/inkscape-vl.spec

@@ -1,16 +1,18 @@
-%define filever  A6N0YOn
-
-Name:     inkscape
-Summary:  A Vector Drawing Application
-Summary(ja):  ベクター描画アプリケーション
-Version:  0.92.4
-Release:  3%{?_dist_release}
-
-Group:    Applications/Graphics
-License:  GPLv2+
-URL:      https://launchpad.net/inkscape
-
-Source0:  https://launchpad.net/inkscape/%{version}.x/%{version}/+download/inkscape-%{version}_%{filever}.tar.bz2
+%global page_id  23820
+%global src_suffix 2021-01-15_e86c870879
+
+Name:           inkscape
+Summary:        A Vector Drawing Application
+Summary(ja):    ベクター描画アプリケーション
+Version:        1.0.2
+Release:        1%{?_dist_release}
+Group:          graphics
+Vendor:         Project Vine
+Distribution:   Vine Linux
+
+License:        GPLv2+
+URL:            https://inkscape.org/
+Source0:        https://inkscape.org/ja/gallery/item/%{page_id}/inkscape-%{version}.tar.xz
 
 # # to fix compile error with poppler>=0.58
 # Patch1000:  poppler-0.58.x.patch
@@ -18,47 +20,42 @@ Source0:  https://launchpad.net/inkscape/%{version}.x/%{version}/+download/inksc
 
 # # to fix compile error with poppler>=0.76.0
 # https://gitlab.com/inkscape/inkscape/issues/220
-Patch1002:  poppler-0.76.x.patch
+#Patch1002:  poppler-0.76.x.patch
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 
-BuildRequires: gtk2-devel >= 2.8.0
-BuildRequires: gnome-vfs2-devel >= 2.0
-BuildRequires: libxml2-devel >= 2.6.11
-BuildRequires: libxslt-devel >= 1.0.15
-BuildRequires: gc-devel >= 6.4
+BuildRequires: cairo-devel
+BuildRequires: cmake
+BuildRequires: dos2unix
 BuildRequires: dbus-glib-devel
-BuildRequires: libsigc++-devel >= 2.0.12
-BuildRequires: gtkmm2-devel >= 2.8.0
-BuildRequires: libpng-devel >= 1.2.0
-BuildRequires: libwpg-devel
+BuildRequires: double-conversion-devel
+BuildRequires: gc-devel >= 6.4
+BuildRequires: gdl-devel
+BuildRequires: gsl-devel
+BuildRequires: gtkmm3-devel
+BuildRequires: ImageMagick-c++-devel
+BuildRequires: lcms2-devel
+BuildRequires: libboost-devel
 BuildRequires: libexif-devel
 BuildRequires: libjpeg-turbo-devel
+BuildRequires: libpng-devel >= 1.2.0
+BuildRequires: libsigc++-devel >= 2.0.12
+BuildRequires: libsoup-devel
+BuildRequires: libxml2-devel >= 2.6.11
+BuildRequires: libxslt-devel >= 1.0.15
+BuildRequires: libwpg-devel
+BuildRequires: pango-devel
 BuildRequires: perl-XML-Parser
-BuildRequires: lcms2-devel
 BuildRequires: poppler-devel >= 0.14.2
-BuildRequires: pango-devel, cairo-devel
-BuildRequires: gsl-devel
-BuildRequires: libboost-devel
 BuildRequires: popt-devel
-BuildRequires: ImageMagick-c++-devel
-BuildRequires: dos2unix
-BuildRequires: automake autoconf
-
-Requires:      python-lxml
-Requires:      perl-XML-RegExp
-Requires:      perl-XML-DOM
-Requires:      perl-XML-XQL
-# the package requires libperl.so, so it also has to require this:
-Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+BuildRequires: potrace-devel
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
 
-# Filter out perl requires and provides
-# XXX: For now _all_
-%global __perl_provides %{nil}
-%global __perl_requires %{nil}
-
-Vendor: Project Vine
-Distribution: Vine Linux
+Requires:       python3
+Requires:       python3-lxml
+Requires:       python3-numpy
+#Requires:       python3-scour
 
 %description
 Inkscape is a SVG based generic vector-drawing program for 
@@ -68,12 +65,16 @@ Linux/Unix/Windows/Mac.
 Inkscape は SVG ベースの汎用ベクトル描画プログラムです。
 Linux/Unix/Windows/Mac で動作します。
 
+
+%debug_package
+
+
 %prep
-%setup -q -n %{name}-%{version}
+%setup -q -n %{name}-%{version}_%{src_suffix}
 
 # %patch1000 -p1
 # %patch1001 -p1
-%patch1002 -p1 -b .poppler0.76.x
+#patch1002 -p1 -b .poppler0.76.x
 
 # https://bugs.launchpad.net/inkscape/+bug/314381
 # A couple of files have executable bits set,
@@ -85,30 +86,45 @@ find share/extensions -name '*.py' | xargs chmod -x
 # Fix end of line encodings
 dos2unix -k -q share/extensions/*.py
 
-%build
-./autogen.sh
 
-export CXXFLAGS="$RPM_OPT_FLAGS -std=c++11"
-%configure \
-    --with-gnome-vfs \
-    --with-inkjar \
-    --enable-poppler-cairo \
-    --disable-strict-build
+%build
+cmake \
+        -DCMAKE_C_FLAGS_RELEASE:STRING="-DNDEBUG" \
+        -DCMAKE_CXX_FLAGS_RELEASE:STRING="-DNDEBUG" \
+        -DCMAKE_Fortran_FLAGS_RELEASE:STRING="-DNDEBUG" \
+        -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
+        -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
+        -DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \
+        -DLIB_INSTALL_DIR:PATH=%{_libdir} \
+        -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
+        -DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \
+%if "%{_lib}" == "lib64" 
+        -DLIB_SUFFIX=64 \
+%endif 
+        -DBUILD_SHARED_LIBS:BOOL=OFF .
 
 make %{?_smp_mflags}
 
+
 %install
 rm -rf %{buildroot}
 
-make install DESTDIR=$RPM_BUILD_ROOT
+make install DESTDIR=%{buildroot}
+find %{buildroot} -type f -name 'lib*.a' -delete
 
-rm -f $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache
+rm -f %{buildroot}%{_datadir}/icons/hicolor/icon-theme.cache
+
+%find_lang %{name} --with-man
+%find_lang inkview --with-man
+
+rm -rf $RPM_BUILD_ROOT%{_datadir}/inkscape/doc
+rm -f $RPM_BUILD_ROOT%{_datadir}/doc/inkscape/copyright
 
-%find_lang %{name}
 
 %clean
 rm -rf %{buildroot}
 
+
 %post 
 /sbin/ldconfig
 touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
@@ -125,20 +141,26 @@ update-desktop-database -q &> /dev/null
 gtk-update-icon-cache %{_iconsdir}/icons/hicolor &> /dev/null || :
 
 
-%files -f %{name}.lang
+%files -f %{name}.lang -f inkview.lang
 %defattr(-, root, root)
-%doc AUTHORS COPYING ChangeLog NEWS README
+%license COPYING
+%doc AUTHORS NEWS* README*
 %{_bindir}/inkscape
 %{_bindir}/inkview
-%{_datadir}/appdata/inkscape.appdata.xml
-%{_datadir}/applications/*.desktop
-%{_datadir}/icons/hicolor/*
 %{_datadir}/inkscape
+%{_datadir}/metainfo/org.inkscape.Inkscape.appdata.xml
+%{_datadir}/applications/org.inkscape.Inkscape.desktop
+%{_datadir}/icons/hicolor/*/*/*.png
 %{_mandir}/man1/*
-%{_mandir}/*/man1/*
+%dir %{_datadir}/bash-completion
+%dir %{_datadir}/bash-completion/completions
+%{_datadir}/bash-completion/completions/inkscape
 
 
 %changelog
+* Sat Feb 27 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.2-1
+- new upstream release.
+
 * Sun Oct 27 2019 Toshiaki Ara <ara_t@384.jp> 0.92.4-3
 - rebuild with OpenEXR-libs-2.4.0 (required by ImageMagick)
 

+ 91 - 34
p/potrace/potrace-vl.spec

@@ -1,56 +1,113 @@
-Summary:            Transforms bitmaps into vector graphics
-Summary(ja):        ビットマップ画像をベクター画像に変換
-Name:               potrace
-Version:            1.11
-Release:            1%{?_dist_release}
-License:            GPL
-Group:              Applications/Graphics
-Source:             http://potrace.sourceforge.net/download/%{name}-%{version}.tar.gz
-URL:                http://potrace.sourceforge.net/
-BuildRoot:          %{_tmppath}/%{name}-%{version}-root
-
-Vendor:             Project Vine
-Distribution:       Vine Linux
-BuildRequires:      zlib-devel
+Name:		potrace
+Summary:	Transform bitmaps into vector graphics
+Summary(ja):	ビットマップ画像をベクター画像に変換
+Version:	1.16
+Release:	1%{?_dist_release}
+Summary:	Transform bitmaps into vector graphics
+Group:		graphics
+Vendor:		Project Vine
+Distribution:	Vine Linux
+
+# README defines license as GPLv2+
+License:	GPLv2+
+URL:		http://potrace.sourceforge.net
+Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+# Documentation
+Source1:	http://potrace.sourceforge.net/potrace.pdf
+Source2:	http://potrace.sourceforge.net/potracelib.pdf
+
+BuildRequires:	zlib-devel
 
 %description
-potrace is a utility for tracing a bitmap, which means, transforming a
-bitmap into a smooth, scalable image.  The input is a portable bitmap
-(PBM), and the default output is an encapsulated PostScript file
-(EPS). A typical use is to create EPS files from scanned data, such as
-company or university logos, handwritten notes, etc.  The resulting
-image is not "jaggy" like a bitmap, but smooth, and it can be scaled
-to any resolution. 
+Potrace is a utility for tracing a bitmap, which means, transforming a bitmap 
+into a smooth, scalable image. The input is a bitmap (PBM, PGM, PPM, or BMP
+format), and the default output is an encapsulated PostScript file (EPS).
+A typical use is to create EPS files from scanned data, such as company or
+university logos, handwritten notes, etc. The resulting image is not "jaggy"
+like a bitmap, but smooth. It can then be rendered at any resolution.
+
+Potrace can currently produce the following output formats: EPS, PostScript,
+PDF, SVG (scalable vector graphics), Xfig, Gimppath, and PGM (for easy
+antialiasing). Additional backends might be added in the future.
+
+Mkbitmap is a program distributed with Potrace which can be used to pre-process
+the input for better tracing behavior on greyscale and color images.
 
 %description -l ja
 potrace はビットマップ画像をトレースするツールです.ビットマップ画像を
 滑らかで拡大縮小できる画像に変換します.社章、校章、手書き図のスキャン
 画像から滑らかなEPSを得るには,例えば,
-convert hoge.bmp pbm:- | mkbitmap -s 2 | potrace -a -1 -C "#202020" > hoge.eps 
+convert hoge.bmp pbm:- | mkbitmap -s 2 | potrace -a -1 -C "#202020" > hoge.eps
 とします.入力形式がPBMであることに注意してください.
 
+
+%package devel
+Summary:	Potrace development library and headers
+Group:		programming
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+This package contains the potrace development library and headers.
+
+
+%package doc
+Summary:	Documentation on how to use the potrace library
+Group:		documentation
+%if 0%{?fedora} > 10 || 0%{?rhel} > 5
+BuildArch:	noarch
+%endif
+
+%description doc
+This package contains documentation for the potrace algorithm and the potrace
+library.
+
+
+%debug_package
+
+
 %prep
 %setup -q
+cp -a %{SOURCE1} .
+cp -a %{SOURCE2} .
+
 
 %build
-%configure --enable-metric --enable-a4
-%{__make}
+%configure --enable-shared --disable-static \
+ --enable-metric --with-libpotrace --with-pic
+%make_build
+
 
 %install
-rm -rf $RPM_BUILD_ROOT
-%makeinstall
- 
-%clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
+%make_install
+find %{buildroot} -name *.la -exec rm -rf {} \;
+
+# Get rid of installed copy of placement.pdf
+rm -rf %{buildroot}%{_docdir}/%{name}
+
 
 %files
-%defattr(-, root, root)
-%doc AUTHORS COPYING ChangeLog NEWS README
-%{_bindir}/*
-%{_docdir}/%{name}/placement.pdf
-%{_mandir}/man1/*
+%doc AUTHORS ChangeLog COPYING NEWS README doc/placement.pdf
+%{_bindir}/potrace
+%{_bindir}/mkbitmap
+%{_libdir}/libpotrace.so.*
+%{_mandir}/man1/potrace.1*
+%{_mandir}/man1/mkbitmap.1*
+
+%files devel
+%{_libdir}/libpotrace.so
+%{_includedir}/potracelib.h
+
+%files doc
+%doc potrace.pdf potracelib.pdf
+
 
 %changelog
+* Sat Feb 27 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.16-1
+- new upstream release.
+- made to built a shared library.
+- added subpackages: devel, doc.
+
 * Sun Jan 25 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.11-1
 - update to 1.11
 - remove Patch0

+ 13 - 6
p/pstoedit/pstoedit-vl.spec

@@ -2,8 +2,8 @@ Name:            pstoedit
 Summary:         Translator of PostScript and PDF graphics into various vector formats
 Summary(ja):     ポストスクリプトやPDFを多種多様なベクタ形式に変換
 Version:         3.75
-Release:         1%{?_dist_release}
-Group:           Applications/Graphics
+Release:         2%{?_dist_release}
+Group:           graphics
 Vendor:          Project Vine
 Distribution:    Vine Linux
 
@@ -78,10 +78,11 @@ pstoeditはポストスクリプトやPDFを多種多様なベクタ形式に変
     * via ImageMagick to any format supported by ImageMagick
     * SWF (beta release state - still lot's of features missing (fonts, dash handling, ...)
 
+
 %package        devel
 Summary:        pstoedit C Library developer.
 Summary(ja):    pstoedit 開発ライブラリ
-Group:          Development/Libraries
+Group:          programming
 URL:            http://www.pstoedit.net/pstoedit
 Requires:       pstoedit = %{version}-%{release}
 Requires:       libpng-devel libstdc++-devel zlib-devel 
@@ -92,10 +93,15 @@ pstoedit library
 %description -l ja devel
 pstoedit 開発ライブラリ
 
+
+%debug_package
+
+
 %prep
 %setup -q 
  %{__perl} -p -i -e 's|BINDIR=/usr/local/bin||' autogen.sh
 
+
 %build
 autoreconf -fiv
 #./autogen.sh
@@ -174,9 +180,7 @@ rm -rf %{buildroot}%{_docdir}/%{name}
 rm -rf $RPM_BUILD_ROOT
 
 
-%post -p /sbin/ldconfig
-
-%postun -p /sbin/ldconfig
+%ldconfig_scriptlets
 
 
 %files
@@ -203,6 +207,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Sat Feb 27 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.75-2
+- rebuilt with ImageMagick-6.9.12.1.
+
 * Sun May 17 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.75-1
 - new upstream release.