Browse Source

updated 8 packages

LibRaw-0.20.0-1

OpenImageIO-2.2.6.1-1

babl-0.1.78-1

gegl04-0.4.26-1

gthumb-3.10.0-1

jasper-2.0.19-1

pugixml-1.10-1

pybind11-2.5.0-7

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

+ 24 - 12
L/LibRaw/LibRaw-vl.spec

@@ -3,21 +3,21 @@
 Summary: Library for reading RAW files obtained from digital photo cameras
 Summary(ja): デジタルカメラから取り込んだ RAW ファイルを読むためのライブラリ
 Name: LibRaw
-Version: 0.19.5
+Version: 0.20.0
 Release: 1%{?_dist_release}
+Group: system
+Vendor: Project Vine
+Distribution: Vine Linux
+
 License: BSD and (CDDL or LGPLv2)
-Group: System Environment/Libraries
-URL: http://www.libraw.org
+URL: https://www.libraw.org/
+Source0: https://www.libraw.org/data/LibRaw-%{version}.tar.gz
+
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 BuildRequires: gcc libtool make
 BuildRequires: lcms2-devel
 BuildRequires: jasper-devel
 
-Source0: http://www.libraw.org/data/LibRaw-%{version}.tar.gz
-
-Vendor: Project Vine
-Distribution: Vine Linux
-
 %description
 LibRaw is a library for reading RAW files obtained from digital photo
 cameras (CRW/CR2, NEF, RAF, DNG, and others).
@@ -25,10 +25,11 @@ cameras (CRW/CR2, NEF, RAF, DNG, and others).
 LibRaw is based on the source codes of the dcraw utility, where part of
 drawbacks have already been eliminated and part will be fixed in future.
 
+
 %package devel
 Summary: LibRaw development libraries
 Summary(ja): LibRaw の開発ライブラリ
-Group: Development/Libraries
+Group: programming
 Requires: %{name} = %{version}-%{release}
 Requires: pkgconfig
 
@@ -38,19 +39,25 @@ LibRaw development libraries
 This package contains static libraries that applications can use to build
 against libraw. LibRaw does not provide dynamic libraries.
 
+
 %package static
 Summary: LibRaw static libraries
 Summary(ja): LibRaw の静的ライブラリ
-Group: Development/Libraries
+Group: programming
 
 Requires: %{name}-devel = %{version}-%{release}
 
 %description static
 This package contains the static library for %{name}.
 
+
+%debug_package
+
+
 %prep
 %setup -q
 
+
 %build
 autoreconf -if
 %configure \
@@ -84,6 +91,10 @@ rm -fv samples/*.o
 rm -rf %{buildroot}%{_libdir}/*.la
 
 
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+
 %files
 %defattr(-,root,root,-)
 %license LICENSE.CDDL LICENSE.LGPL COPYRIGHT
@@ -103,10 +114,11 @@ rm -rf %{buildroot}%{_libdir}/*.la
 %defattr(-,root,root,-)
 %{_libdir}/*.a
 
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
 
 %changelog
+* Fri Sep 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.20.0-1
+- new upstream release.
+
 * Sun Sep 08 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 0.19.5-1
 - new upstream release.
 

+ 28 - 22
O/OpenImageIO/OpenImageIO-vl.spec

@@ -1,10 +1,12 @@
+%bcond_with external_pugixml
+
 %global subname oiio
 
 Name:           OpenImageIO
-Version:        2.1.10.1
+Version:        2.2.6.1
 Release:        1%{?_dist_release}
 Summary:        Library for reading and writing images
-Group:          System Environment/Libraries
+Group:          system
 Vendor:         Project Vine
 Distribution:   Vine Linux
 
@@ -33,7 +35,10 @@ BuildRequires:  hdf5-devel
 BuildRequires:  zlib-devel
 BuildRequires:  jasper-devel
 BuildRequires:  LibRaw-devel
+%if %{with external_pugixml}
 BuildRequires:  pugixml-devel
+%endif
+BuildRequires:  pybind11-devel
 
 # WARNING: OpenColorIO and OpenImageIO are cross dependent.
 # If an ABI incompatible update is done in one, the other also needs to be
@@ -48,7 +53,6 @@ Obsoletes:      python-OpenImageIO
 %filter_setup
 }
 
-
 %description
 OpenImageIO is a library for reading and writing images, and a bunch of related
 classes, utilities, and applications. Main features include:
@@ -63,6 +67,7 @@ classes, utilities, and applications. Main features include:
 
 %package -n python3-%{name}
 Summary:        Python 3 bindings for %{name}
+Group:          programming
 Requires:       %{name} = %{version}-%{release}
 
 %description -n python3-%{name}
@@ -71,6 +76,7 @@ Python3 bindings for %{name}.
 
 %package utils
 Summary:        Command line utilities for %{name}
+Group:          graphics
 Requires:       %{name} = %{version}-%{release}
 
 %description utils
@@ -80,6 +86,7 @@ Command-line tools to manipulate and get information on images using the
 
 %package iv
 Summary:        %{name} based image viewer
+Group:          graphics
 Requires:       %{name} = %{version}-%{release}
 
 %description iv
@@ -89,20 +96,25 @@ with any formats for which plugins are available).
 
 %package devel
 Summary:        Documentation for %{name}
-Group:          Development/Libraries
+Group:          programming
 Requires:       %{name} = %{version}-%{release}
 
 %description devel
 Development files for package %{name}
 
 
+%debug_package
+
+
 %prep
 %setup -q -n oiio-Release-%{version}
 
+%if %{with external_pugixml}
 # Remove bundled pugixml
-%{__rm} -f src/include/pugixml.hpp \
-        src/include/pugiconfig.hpp \
-        src/libutil/pugixml.cpp
+rm -f src/include/OpenImageIO/pugixml.hpp \
+      src/include/OpenImageIO/pugiconfig.hpp \
+      src/libutil/OpenImageIO/pugixml.cpp 
+%endif
 
 # Remove bundled tbb
 %{__rm} -rf src/include/tbb
@@ -114,31 +126,22 @@ Development files for package %{name}
 
 %build
 %{__rm} -rf build/linux && %{__mkdir_p} build/linux && pushd build/linux
-
-export PYTHON=%{__python3}
-export PYTHON_LIBRARIES=%(%{__python3} -c "import distutils.sysconfig as sysconfig; print(sysconfig.get_config_var('LIBDIR'))")
-export PYTHON_INCLUDE_DIRS=%(%{__python3} -c "from distutils.sysconfig import get_python_inc; print(get_python_inc())")
-
 # CMAKE_SKIP_RPATH is OK here because it is set to FALSE internally and causes
 # CMAKE_INSTALL_RPATH to be cleared, which is the desiered result.
 %cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
        -DCMAKE_SKIP_RPATH:BOOL=TRUE \
-       -DINCLUDE_INSTALL_DIR:PATH=/usr/include/%{name} \
-       -DPYTHON_VERSION=3.5 \
-       -DPYTHON_EXECUTABLE=%{__python3} \
-       -DPYTHON_LIBRARY=$PYTHON_LIBRARIES \
-       -DPYLIB_INSTALL_DIR:PATH=%{python3_sitearch} \
+       -DBUILDSTATIC=OFF \
+       -DLINKSTATIC=OFF \
+       -DPYTHON_VERSION=%{python3_version} \
        -DINSTALL_DOCS:BOOL=FALSE \
        -DINSTALL_FONTS:BOOL=FALSE \
+%if %{with external_pugixml}
        -DUSE_EXTERNAL_PUGIXML:BOOL=TRUE \
+%endif
        -DUSE_TBB:BOOL=FALSE \
        -DUSE_OPENSSL:BOOL=TRUE \
        -DSTOP_ON_WARNING:BOOL=FALSE \
-       -DUSE_CPP:STRING=14 \
-%ifarch ppc ppc64
-       -DNOTHREADS:BOOL=FALSE \
-%endif
-       -DJPEG_INCLUDE_DIR=%{_includedir} \
+       -DJPEG_INCLUDE_DIR=$(pkg-config --variable=includedir libopenjp2) \
        -DVERBOSE=TRUE \
        ../../
 
@@ -192,6 +195,9 @@ popd
 
 
 %changelog
+* Fri Sep 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.2.6.1-1
+- new upstream release.
+
 * Sat Apr 25 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.1.10.1-1
 - new upstream release.
 - built with boost-1.72.0.

+ 24 - 14
b/babl/babl-vl.spec

@@ -1,22 +1,22 @@
-Summary:  A dynamic, any to any, pixel format conversion library
-Name:     babl
-Version:  0.1.74
-Release:  1%{?_dist_release}
+Summary:        A dynamic, any to any, pixel format conversion library
+Name:           babl
+Version:        0.1.78
+Release:        1%{?_dist_release}
+Group:          system
+Vendor:         Project Vine
+Distribution:   Vine Linux
 # The gggl codes contained in this package are under the GPL, with exceptions allowing their use under libraries covered under the LGPL
-License:  LGPLv3+ and GPLv3+
-Group:    System Environment/Libraries
-URL:      http://www.gegl.org/babl/
-Source0:  https://download.gimp.org/pub/babl/0.1/%{name}-%{version}.tar.xz
+License:        LGPLv3+ and GPLv3+
+URL:            http://www.gegl.org/babl/
+Source0:        https://download.gimp.org/pub/babl/0.1/%{name}-%{version}.tar.xz
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildRequires:  w3m
 BuildRequires:  meson
 BuildRequires:  gobject-introspection-devel
+BuildRequires:  vala-devel
 BuildRequires:  lcms2-devel
 
-Vendor: Project Vine
-Distribution: Vine Linux
-
 %description
 Babl is a dynamic, any to any, pixel format conversion library. It
 provides conversions between the myriad of buffer types images can be
@@ -24,9 +24,10 @@ stored in. Babl doesn't only help with existing pixel formats, but also
 facilitates creation of new and uncommon ones.
 #'
 
+
 %package devel
 Summary:  Headers for developing programs that will use %{name}
-Group:    Development/Libraries
+Group:    programming
 Requires: %{name} = %{version}-%{release}
 Requires: pkgconfig
 
@@ -34,15 +35,17 @@ Requires: pkgconfig
 This package contains the libraries and header files needed for
 developing with %{name}.
 
+
 %prep
 %setup -q
 
+
 %build
 %meson \
 	-Dwith-docs=false
-
 %meson_build
 
+
 %install
 %{__rm} -rf %{buildroot}
 %meson_install
@@ -67,11 +70,12 @@ popd
 make check
 %endif
 
+
 %clean
 %{__rm} -rf %{buildroot}
 
-%post -p %{_syssbindir}/ldconfig
 
+%post -p %{_syssbindir}/ldconfig
 %postun -p %{_syssbindir}/ldconfig
 
 
@@ -92,8 +96,14 @@ make check
 %{_libdir}/pkgconfig/%{name}.pc
 %dir %{_datadir}/gir-1.0/
 %{_datadir}/gir-1.0/Babl-0.1.gir
+%dir %{_datadir}/vala
+%dir %{_datadir}/vala/vapi
+%{_datadir}/vala/vapi/babl-*
 
 %changelog
+* Fri Sep 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.1.78-1
+- new upstream release.
+
 * Fri Apr 17 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.1.74-1
 - new upstream release.
 

+ 7 - 4
g/gegl04/gegl04-vl.spec

@@ -1,9 +1,9 @@
 Summary:        A graph based image processing framework
 Summary(ja):    グラフベースの画像処理フレームワーク
 Name:           gegl04
-Version:        0.4.22
+Version:        0.4.26
 Release:        1%{?_dist_release}
-Group:          System Environment/Libraries
+Group:          system
 Vendor:         Project Vine
 Distribution:   Vine Linux
 
@@ -60,10 +60,11 @@ GEGLs original design was made to scratch GIMPs itches for a new
 compositing and processing core. This core is being designed to have
 minimal dependencies. and a simple well defined API.
 
+
 %package devel
 Summary:  Development files for %{name}
 Summary(ja):  %{name} の開発ファイル
-Group:    Development/Libraries
+Group:    programming
 Requires: %{name} = %{version}-%{release}
 Requires: pkgconfig babl-devel glib2-devel
 Obsoletes:      gegl-devel < 0.4
@@ -106,7 +107,6 @@ find %{buildroot} -name '*.la' -delete
 
 
 %post -p %{_syssbindir}/ldconfig
-
 %postun -p %{_syssbindir}/ldconfig
 
 
@@ -135,6 +135,9 @@ find %{buildroot} -name '*.la' -delete
 
 
 %changelog
+* Fri Sep 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4.26-1
+- new upstream release.
+
 * Fri Apr 17 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4.22-1
 - new upstream release.
 

+ 16 - 10
g/gthumb/gthumb-vl.spec

@@ -12,15 +12,18 @@
 Summary: Image viewer, editor, organizer
 Summary(ja): 画像閲覧、編集、管理ツール
 Name: gthumb
-Version: 3.8.3
+Version: 3.10.0
 Release: 1%{?_dist_release}
-Group: Applications/Multimedia
-%global shortver %(echo %{version} | sed -e 's/\\.[0-9]*$//')
+Group: graphics,desktop-gnome
+Vendor: Project Vine
+Distribution: Vine Linux
+
 License: GPL
-URL: http://gthumb.sourceforge.net/
-Source0: http://ftp.gnome.org/pub/gnome/sources/%{name}/%{shortver}/%{name}-%{version}.tar.xz
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
+URL: https://wiki.gnome.org/action/show/Apps/Gthumb
+%global shortver %(echo %{version} | sed -e 's/\\.[0-9]*$//')
+Source0: https://ftp.gnome.org/pub/gnome/sources/%{name}/%{shortver}/%{name}-%{version}.tar.xz
 
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
 BuildRequires: bison
 BuildRequires: flex
 BuildRequires: brasero-devel >= %{brasero_version}
@@ -49,9 +52,6 @@ BuildConflicts: compat32-zlib-devel
 
 Requires(postun,posttrans): desktop-file-utils, glib2
 
-Vendor: Project Vine
-Distribution: Vine Linux
-
 %description
 gthumb is an application for viewing, editing, and organizing 
 collections of images.
@@ -59,10 +59,11 @@ collections of images.
 %description -l ja
 gthumb は画像ファイル集の閲覧、編集、管理をするためのアプリケーションです。
 
+
 %package        devel
 Summary:        Development tools for gthumb applications.
 Summary(ja):    gthumb アプリケーションの開発用ファイル
-Group:          Development/Libraries
+Group:          programming
 Requires:       %{name} = %{version}-%{release}
 Requires:       pkgconfig
 
@@ -73,6 +74,7 @@ Header files and libraries for building a extension library for the gthumb.
 %prep
 %setup -q
 
+
 %build
 export LANG=ja_JP.UTF-8
 
@@ -91,6 +93,7 @@ rm -f $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache
 
 %find_lang %{name}
 
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -128,6 +131,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas ||:
 
 
 %changelog
+* Fri Sep 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.10.0-1
+- new upstream release.
+
 * Sat Mar 21 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.8.3-1
 - new upstream release.
 

+ 32 - 27
j/jasper/jasper-vl.spec

@@ -1,32 +1,29 @@
 %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
-%define _unpackaged_files_terminate_build 1
 
-Name:        jasper
-Summary:     implementation of the JPEG-2000 standard, Part 1
-Version:     2.0.16
-Release:     1%{?_dist_release}
+Name:           jasper
+Summary:        implementation of the JPEG-2000 standard, Part 1
+Version:        2.0.19
+Release:        1%{?_dist_release}
+Group:          graphics
+Vendor:         Project Vine
+Distribution:   Vine Linux
 
-Group:       Applications/Graphics
-License:     Modified BSD (see LICENSE)
-URL:         http://www.ece.uvic.ca/~mdadams/jasper/
-
-Source:      https://github.com/mdadams/jasper/archive/version-%{version}.tar.gz#/%{name}-version-%{version}.tar.gz
+License:        Modified BSD (see LICENSE)
+URL:            https://www.ece.uvic.ca/~frodo/jasper/
+Source:         https://github.com/mdadams/jasper/archive/version-%{version}.tar.gz#/%{name}-version-%{version}.tar.gz
 
 # skip hard-coded prefix/lib rpath
-Patch1: jasper-2.0.14-rpath.patch
+Patch1:         jasper-2.0.14-rpath.patch
 
 BuildRoot:   %{_tmppath}/%{name}-%{version}-root
-BuildRequires: autoconf automake libtool
-BuildRequires: freeglut-devel
-BuildRequires: libGLU-devel
-BuildRequires: libjpeg-devel
-BuildRequires: pkgconfig
-BuildRequires: cmake
-
-Requires:    %{name}-libs = %{version}-%{release}
+BuildRequires:  autoconf automake libtool
+BuildRequires:  freeglut-devel
+BuildRequires:  libGLU-devel
+BuildRequires:  libjpeg-devel
+BuildRequires:  pkgconfig
+BuildRequires:  cmake
 
-Vendor:       Project Vine
-Distribution: Vine Linux
+Requires:       %{name}-libs = %{version}-%{release}
 
 %description
 JasPer is a collection of software (i.e., a library and application 
@@ -34,9 +31,10 @@ programs) for the coding and manipulation of images.  This software
 can handle image data in a variety of formats.  One such format 
 supported by JasPer is the JPEG-2000 format defined in ISO/IEC 15444-1.
 
+
 %package devel
 Summary:     Include Files and Documentation for jasper
-Group:       Development/Libraries
+Group:       programming
 Requires:    %{name}-libs = %{version}-%{release}
 Requires:    libjpeg-devel
 
@@ -44,17 +42,19 @@ Requires:    libjpeg-devel
 This package contains libjasper, a library implementing the JPEG-2000
 image compression standard Part 1.
 
+
 %package libs
 Summary: Runtime libraries for %{name}
-Group:   System Environment/Libraries
+Group:   system
 
 %description libs
 This package contains runtime libraries for JasPer.
 
+
 # compat32
 %package -n compat32-%{name}-devel
 Summary:     Include Files and Documentation for jasper
-Group:       Development/Libraries
+Group:       programming
 Requires:    %{name}-libs = %{version}-%{release}
 Requires:    compat32-libjpeg-devel
 
@@ -62,9 +62,10 @@ Requires:    compat32-libjpeg-devel
 This package contains libjasper, a library implementing the JPEG-2000
 image compression standard Part 1.
 
+
 %package -n compat32-%{name}-libs
 Summary: Runtime libraries for %{name}
-Group:   System Environment/Libraries
+Group:   system
 
 %description -n compat32-%{name}-libs
 This package contains runtime libraries for JasPer.
@@ -93,6 +94,7 @@ rm -f doc/README
 rm -f %{buildroot}%{_libdir}/lib*.la
 rm -rf %{buildroot}%{_docdir}/JasPer
 
+
 %check
 make test -C builder
 
@@ -100,14 +102,14 @@ make test -C builder
 %clean
 [ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
 
-%post libs -p /sbin/ldconfig
 
+%post libs -p /sbin/ldconfig
 %postun libs -p /sbin/ldconfig
 
 %post -n compat32-%{name}-libs -p /sbin/ldconfig
-
 %postun -n compat32-%{name}-libs -p /sbin/ldconfig
 
+
 %files
 %defattr(-,root,root)
 %{!?_licensedir:%global license %%doc}
@@ -139,6 +141,9 @@ make test -C builder
 %endif
 
 %changelog
+* Fri Sep 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.19-1
+- new upstream release.
+
 * Sun Sep 08 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.16-1
 - new upstream release.
 - dropped Patch1: fixed in upstream.

+ 19 - 14
p/pugixml/pugixml-vl.spec

@@ -1,12 +1,14 @@
 Name:           pugixml
-Version:        1.7
-Release:        2%{?_dist_release}
+Version:        1.10
+Release:        1%{?_dist_release}
 Summary:        A light-weight C++ XML processing library
-Group:          Development/Libraries
-License:        MIT
-URL:            http://pugixml.org
+Group:          programming
+Vendor:         Project Vine
+Distribution:   Vine Linux
 
-Source0:        http://github.com/zeux/pugixml/releases/download/v%{version}/pugixml-%{version}.tar.gz
+License:        MIT
+URL:            https://pugixml.org/
+Source0:        https://github.com/zeux/pugixml/releases/download/v%{version}/pugixml-%{version}.tar.gz
 # Add pugixml-config.cmake
 # https://github.com/zeux/pugixml/pull/7
 #Patch0:         pugixml-export.patch
@@ -26,7 +28,7 @@ It features:
 
 %package devel
 Summary:        Development files for %{name}
-Group:          Development/Libraries
+Group:          programming
 Requires:       %{name} = %{version}-%{release}
 
 %description devel
@@ -35,7 +37,7 @@ Development files for package %{name}
 
 %package docs
 Summary:        Documentation for %{name}
-Group:          Documentation
+Group:          documentation
 BuildArch:		noarch
 
 %description docs
@@ -49,18 +51,16 @@ Documentation for package %{name}
 
 %build
 mkdir -p ./build && pushd build
-%cmake -DCMAKE_INSTALL_LIBDIR=%{_lib} ../scripts
-make
+%cmake -DCMAKE_INSTALL_LIBDIR=%{_lib} ..
+make %{?_smp_mflags}
 
 
 %install
+rm -rf %{buildroot}
 make -C build install DESTDIR=%{buildroot}
-mkdir -p %{buildroot}%{_datadir}/%{name}/contrib
-install -p -m 0644 contrib/* %{buildroot}%{_datadir}/%{name}/contrib/
 
 
 %post -p /sbin/ldconfig
-
 %postun -p /sbin/ldconfig
 
 
@@ -71,14 +71,19 @@ install -p -m 0644 contrib/* %{buildroot}%{_datadir}/%{name}/contrib/
 %files devel
 %{_libdir}/*.so
 %{_libdir}/cmake/%{name}/
-%{_datadir}/%{name}
+%{_libdir}/pkgconfig/pugixml.pc
 %{_includedir}/*.hpp
 
+%ifnarch %{ix86}
 %files docs
 %doc docs/*
+%endif
 
 
 %changelog
+* Fri Sep 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 1.10-1
+- new upstream release.
+
 * Fri Sep 02 2016 Toshiaki Ara <ara_t@384.jp> - 1.7-2
 - rebuild with gcc-5.4.0
 

+ 299 - 0
p/pybind11/pybind11-vl.spec

@@ -0,0 +1,299 @@
+# While the headers are architecture independent, the package must be
+# built separately on all architectures so that the tests are run
+# properly. See also
+# https://fedoraproject.org/wiki/Packaging:Guidelines#Packaging_Header_Only_Libraries
+%global debug_package %{nil}
+
+# Whether to run the tests, enabled by default
+%bcond_with tests
+
+%global python2_enabled 0
+%global python3_enabled 1
+
+
+Summary:        Seamless operability between C++11 and Python
+Name:           pybind11
+Version:        2.5.0
+Release:        7%{?_dist_release}
+Group:          programming
+Vendor:         Project Vine
+Distribution:   Vine Linux
+
+License:        BSD
+URL:            https://github.com/pybind/pybind11
+Source0:        https://github.com/pybind/pybind11/archive/v%{version}/%{name}-%{version}.tar.gz
+
+# Patch out header path
+Patch1:         pybind11-2.5.0-hpath.patch
+
+BuildRequires:  python-rpm-macros
+%if %{python2_enabled}
+# Needed to build the python libraries
+BuildRequires:  python-devel
+BuildRequires:  python2-setuptools
+BuildRequires:  python3-rpm-macros
+# These are only needed for the checks
+%if %{with tests}
+BuildRequires:  python-pytest
+BuildRequires:  python-numpy
+BuildRequires:  python-scipy
+%endif
+%endif
+
+%if %{python3_enabled}
+# Needed to build the python libraries
+BuildRequires:  python3-devel
+BuildRequires:  python3-setuptools
+BuildRequires:  python3-rpm-macros
+# These are only needed for the checks
+%if %{with tests}
+BuildRequires:  python3-pytest
+BuildRequires:  python3-numpy
+BuildRequires:  python3-scipy
+%endif
+%endif
+
+BuildRequires:  eigen3-devel
+BuildRequires:  gcc-c++
+BuildRequires:  cmake
+
+%global base_description \
+pybind11 is a lightweight header-only library that exposes C++ types \
+in Python and vice versa, mainly to create Python bindings of existing \
+C++ code.
+
+%description
+%{base_description}
+
+
+%package devel
+Summary:  Development headers for pybind11
+Group:    programming
+# https://fedoraproject.org/wiki/Packaging:Guidelines#Packaging_Header_Only_Libraries
+Provides: %{name}-static = %{version}-%{release}
+# For dir ownership
+Requires: cmake
+
+%description devel
+%{base_description}
+
+This package contains the development headers for pybind11.
+
+
+%if %{python2_enabled}
+%package -n     python-%{name}
+Summary:        %{summary}
+Group:          programming
+%{?python_provide:%python_provide python2-%{srcname}}
+Requires: %{name}-devel%{?_isa} = %{version}-%{release}
+
+%description -n python-%{name}
+%{base_description}
+
+This package contains the Python 2 files.
+%endif
+
+%if %{python3_enabled}
+%package -n     python3-%{name}
+Summary:        %{summary}
+Group:          programming
+%{?python_provide:%python_provide python3-%{srcname}}
+
+Requires: %{name}-devel%{?_isa} = %{version}-%{release}
+
+%if !%{python2_enabled}
+# Take care of upgrade path
+Obsoletes:      python-%{name} < %{version}-%{release}
+%endif
+
+%description -n python3-%{name}
+%{base_description}
+
+This package contains the Python 3 files.
+%endif
+
+
+%prep
+%setup -q
+%patch1 -p1 -b .hpath
+
+
+%build
+pys=""
+%if %{python2_enabled}
+pys="$pys python2"
+%endif
+%if %{python3_enabled}
+pys="$pys python3"
+%endif
+for py in $pys; do
+    mkdir $py
+    %cmake -B $py -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=%{_bindir}/$py -DPYBIND11_INSTALL=TRUE -DUSE_PYTHON_INCLUDE_DIR=FALSE %{!?with_tests:-DPYBIND11_TEST=OFF}
+    %make_build -C $py
+done
+
+%if %{python2_enabled}
+%py2_build
+%endif
+%if %{python3_enabled}
+%py3_build
+%endif
+
+
+%if %{with tests}
+%check
+%if %{python2_enabled}
+make -C python2 check %{?_smp_mflags}
+%endif
+%if %{python3_enabled}
+make -C python3 check %{?_smp_mflags}
+%endif
+%endif
+
+
+%install
+# Doesn't matter if both installs run
+%if %{python2_enabled}
+%make_install -C python2
+%endif
+%if %{python3_enabled}
+%make_install -C python3
+%endif
+# Force install to arch-ful directories instead.
+%if %{python2_enabled}
+PYBIND11_USE_CMAKE=true %py2_install "--install-purelib" "%{python2_sitearch}"
+%endif
+%if %{python3_enabled}
+PYBIND11_USE_CMAKE=true %py3_install "--install-purelib" "%{python3_sitearch}"
+%endif
+
+
+%files devel
+%license LICENSE
+%doc README.md
+%{_includedir}/pybind11/
+%{_datadir}/cmake/pybind11/
+
+%if %{python2_enabled}
+%files -n python2-%{name}
+%{python2_sitearch}/%{name}/
+%{python2_sitearch}/%{name}-%{version}-py?.?.egg-info
+%endif
+
+%if %{python3_enabled}
+%files -n python3-%{name}
+%{python3_sitearch}/%{name}/
+%{python3_sitearch}/%{name}-%{version}-py%{python3_version}.egg-info
+%endif
+
+
+%changelog
+* Fri Sep 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.5.0-7
+- initial build for Vine Linux.
+
+* Wed Aug 05 2020 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.5.0-6
+- Adapt to new CMake macros.
+
+* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-5
+- Second attempt - Rebuilt for
+  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
+
+* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
+
+* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 2.5.0-3
+- Rebuilt for Python 3.9
+
+* Mon May 25 2020 Miro Hrončok <mhroncok@redhat.com> - 2.5.0-2
+- Bootstrap for Python 3.9
+
+* Wed Apr 01 2020 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.5.0-1
+- Update to 2.5.0.
+
+* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.3-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
+
+* Tue Oct 15 2019 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.4.3-1
+- Update to 2.4.3.
+
+* Tue Oct 08 2019 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.4.2-2
+- Fix Python 3.8 incompatibility.
+
+* Sat Sep 28 2019 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.4.2-1
+- Update to 2.4.2.
+
+* Fri Sep 20 2019 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.4.1-1
+- Update to 2.4.1.
+
+* Fri Sep 20 2019 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.4.0-1
+- Update to 2.4.0.
+
+* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.3.0-3
+- Rebuilt for Python 3.8
+
+* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.3.0-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
+
+* Wed Jul 10 2019 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.3.0-1
+- Update to 2.3.0.
+
+* Fri May 03 2019 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.2.4-3
+- Fix incompatibility with pytest 4.0.
+
+* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.4-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
+
+* Tue Sep 18 2018 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.2.4-1
+- Remove python2 packages for Fedora >= 30.
+- Update to 2.2.4.
+
+* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.3-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
+
+* Sat Jun 23 2018 Miro Hrončok <mhroncok@redhat.com> - 2.2.3-2
+- Rebuilt for Python 3.7
+
+* Fri Jun 22 2018 Susi Lehtola <jussilehtola@fedoraproject.org> - 2.2.3-1
+- Update to 2.2.3.
+
+* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.2.2-4
+- Rebuilt for Python 3.7
+
+* Mon Apr 16 2018 Susi Lehtola <jussilehtola@fedorapeople.org> - 2.2.2-3
+- Add Python subpackages based on Elliott Sales de Andrade's patch.
+
+* Sat Feb 17 2018 Susi Lehtola <jussilehtola@fedorapeople.org> - 2.2.2-2
+- Fix FTBS by patch from upstream.
+
+* Wed Feb 14 2018 Susi Lehtola <jussilehtola@fedorapeople.org> - 2.2.2-1
+- Update to 2.2.2.
+
+* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.1-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
+
+* Thu Dec 14 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.2.1-1
+- Update to latest version
+- Update Source URL to include project name.
+
+* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-7
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
+
+* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-6
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
+
+* Mon Feb 27 2017 Susi Lehtola <jussilehtola@fedorapeople.org> - 2.0.1-5
+- Full compliance with header only libraries guidelines.
+
+* Thu Feb 23 2017 Susi Lehtola <jussilehtola@fedorapeople.org> - 2.0.1-4
+- As advised by upstream, disable dtypes test for now.
+- Include patch for tests on bigendian systems.
+
+* Thu Feb 23 2017 Susi Lehtola <jussilehtola@fedorapeople.org> - 2.0.1-3
+- Make the package arched so that tests can be run on all architectures.
+- Run tests both against python2 and python3.
+
+* Wed Feb 22 2017 Susi Lehtola <jussilehtola@fedorapeople.org> - 2.0.1-2
+- Switch to python3 for tests.
+
+* Sun Feb 05 2017 Susi Lehtola <jussilehtola@fedorapeople.org> - 2.0.1-1
+- First release.