| |
@@ -1,37 +1,16 @@
|
| |
%global shortname typescript
|
| |
|
| |
- # The tests depend on npm packages not yet packaged for Fedora
|
| |
- %global enable_tests 0
|
| |
-
|
| |
Name: nodejs-typescript
|
| |
- Version: 2.8.3
|
| |
- Release: 7%{?dist}
|
| |
+ Version: 4.0.2
|
| |
+ Release: 1%{?dist}
|
| |
Summary: A language for application scale JavaScript development
|
| |
-
|
| |
License: ASL 2.0
|
| |
- URL: https://github.com/Microsoft/TypeScript/
|
| |
+ URL: https://www.typescriptlang.org
|
| |
Source0: http://registry.npmjs.org/%{shortname}/-/%{shortname}-%{version}.tgz
|
| |
- # The test files are not included in the npm tarball.
|
| |
- # Source{1-9} are generated by running Source10, which pulls from the upstream
|
| |
- # version control repository.
|
| |
- Source1: tests-%{version}.tar.bz2
|
| |
- Source2: src-%{version}.tar.bz2
|
| |
- Source3: docs-%{version}.tar.bz2
|
| |
- Source4: scripts-%{version}.tar.bz2
|
| |
- Source10: dl-tests.sh
|
| |
- # Jakefile for tests
|
| |
- Source11: https://raw.githubusercontent.com/Microsoft/TypeScript/v%{version}/Jakefile.js
|
| |
-
|
| |
BuildArch: noarch
|
| |
ExclusiveArch: %{nodejs_arches} noarch
|
| |
+ BuildRequires: nodejs
|
| |
|
| |
- BuildRequires: nodejs-packaging
|
| |
-
|
| |
- %if 0%{enable_tests}
|
| |
- BuildRequires: jake
|
| |
- BuildRequires: npm(del)
|
| |
- BuildRequires: npm(travis-fold) # not yet packaged for Fedora
|
| |
- %endif
|
| |
|
| |
%description
|
| |
TypeScript is a language for application-scale JavaScript. TypeScript
|
| |
@@ -40,40 +19,23 @@
|
| |
for any host, on any OS. TypeScript compiles to readable, standards-based
|
| |
JavaScript.
|
| |
|
| |
+
|
| |
%prep
|
| |
%setup -qn package
|
| |
- # setup the tests, src, docs, scripts
|
| |
- %autosetup -T -D -a 1 -n package
|
| |
- %autosetup -T -D -a 2 -n package
|
| |
- %autosetup -T -D -a 3 -n package
|
| |
- %autosetup -T -D -a 4 -n package
|
| |
- # Jakefile
|
| |
- cp -p %{SOURCE11} .
|
| |
|
| |
- %build
|
| |
- # Nothing to do
|
| |
|
| |
%install
|
| |
mkdir -p %{buildroot}%{nodejs_sitelib}/%{shortname}/
|
| |
cp -pr package.json bin/ lib/ %{buildroot}%{nodejs_sitelib}/%{shortname}
|
| |
|
| |
- # Make tsc executable
|
| |
- chmod +x %{buildroot}%{nodejs_sitelib}/%{shortname}/bin/tsc
|
| |
-
|
| |
# Symlink tsc executable file to _bindir
|
| |
mkdir -p %{buildroot}%{_bindir}
|
| |
- pushd %{buildroot}%{_bindir}
|
| |
- ln -s %{nodejs_sitelib}/%{shortname}/bin/tsc
|
| |
- popd
|
| |
+ ln -s %{nodejs_sitelib}/%{shortname}/bin/tsc %{buildroot}%{_bindir}
|
| |
+
|
| |
|
| |
%check
|
| |
%nodejs_symlink_deps --check
|
| |
%{__nodejs} -e 'require("./")'
|
| |
- %if 0%{?enable_tests}
|
| |
- %{_bindir}/jake
|
| |
- %else
|
| |
- %{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m"
|
| |
- %endif
|
| |
|
| |
|
| |
%files
|
| |
@@ -82,7 +44,11 @@
|
| |
%doc ThirdPartyNoticeText.txt README.md CopyrightNotice.txt
|
| |
%license LICENSE.txt
|
| |
|
| |
+
|
| |
%changelog
|
| |
+ * Tue Aug 25 2020 Carl George <carl@george.computer> - 4.0.2-1
|
| |
+ - Latest upstream rhbz#1825686
|
| |
+
|
| |
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.3-7
|
| |
- Second attempt - Rebuilt for
|
| |
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
| |
https://bugzilla.redhat.com/show_bug.cgi?id=1825686